Commit 716f4f91 authored by Guillaume Seguin's avatar Guillaume Seguin

Initial zoom factor should clearly be derived from min dimension (#520)

parent f99f0f22
......@@ -203,7 +203,7 @@ class wxGLPanel(wx.Panel):
glLoadIdentity()
self.setup_lights()
if self.orthographic:
ratio = factor * float(max(self.width, self.height)) / self.dist
ratio = factor * float(min(self.width, self.height)) / self.dist
self.zoom_factor = 1.0
self.zoomed_width = 1.0
self.zoomed_height = 1.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment