The zoom scale doesn't work properly due to incorrect values reported by
gtk.VScale. The gtk.VScale used had its property update-policy set to
gtk.UPDATE_DISCONTINUOUS and digits set to zero, ok. But, for some reason, GTK
still reports a value not rounded. Thus, for example, if I click the scale
button, and releases at some point, lets say 10, the returned value is like
9.97085201794. This leads to an incorrect position of the map that is placed
far away than the desired point, i.e. its center is not respected.
Steps to reproduce the problem:
1. Start GMapCather
2. Click at the scale button but don't move it
3. Release mouse button
The map should still in its position but it gets moved to some other point
instead.
I'm using trunk version of GMapCather. Got from svn. Ubuntu 10.04. GTK 2.20.1.
PyGTK 2.17.0.
I'm attaching a patch for a workaround.
Hope this helps. Contact me if needed. Thanks --Bruno
Original issue reported on code.google.com by menegola@gmail.com on 30 Jul 2010 at 1:32
Original issue reported on code.google.com by
menegola@gmail.com
on 30 Jul 2010 at 1:32Attachments: