Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
716f4f91
Commit
716f4f91
authored
Apr 03, 2014
by
Guillaume Seguin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial zoom factor should clearly be derived from min dimension (#520)
parent
f99f0f22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
panel.py
printrun/gl/panel.py
+1
-1
No files found.
printrun/gl/panel.py
View file @
716f4f91
...
...
@@ -203,7 +203,7 @@ class wxGLPanel(wx.Panel):
glLoadIdentity
()
self
.
setup_lights
()
if
self
.
orthographic
:
ratio
=
factor
*
float
(
m
ax
(
self
.
width
,
self
.
height
))
/
self
.
dist
ratio
=
factor
*
float
(
m
in
(
self
.
width
,
self
.
height
))
/
self
.
dist
self
.
zoom_factor
=
1.0
self
.
zoomed_width
=
1.0
self
.
zoomed_height
=
1.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment