this bug was introduced by Document::viewportAspectRatio() as it returns 0.0 if no document is loaded. Solution is to check against it.
this bug was introduced by Document: :viewportAspect Ratio() as it returns 0.0 if no document is loaded.
Solution is to check against it.