URL:
<http://gna.org/bugs/?19938>
Summary: Maximum zoom is not matched to maximum 'zoomlevel'
Project: MyPaint
Submitted by: ion9
Submitted on: Sat 14 Jul 2012 05:20:44 AM GMT
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Planned Release: None
Operating System:
_______________________________________________________
Details:
in gui/tileddrawwidget.py:563, it says:
# gets overwritten for the main window.
self.zoom_max = 5.0
self.zoom_min = 1/5.0
However, this is approximately false -- adding new zoomlevels
(8,11,16,24,32,40,48,64) to the zoomlevels list in gui/document.py will not
allow you to zoom more. I believe this is because the renderer has a zoom_max,
and when the zoom_max attribute is updated on the TDW, it is not properly
propagated to the renderer (the object that actually tracks and performs
zoom).
It's easy to observe this bug, by changing that line to read, say,
self.zoom_max = 2.0
Even though 3, 4, and 5 are listed in zoomlevels, you will find it's
impossible to zoom in that much.
For now, I just hacked around this by changing that line to
self.zoom_max = 64.0
but of course proper propagation of attribute changes is needed for drawing
areas that are not the main window to behave appropriately.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?19938>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Mypaint-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-bugs