electri / gmapcatcher

Automatically exported from code.google.com/p/gmapcatcher
0 stars 0 forks source link

Zoom scale doesn't work properly #189

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Attachments:

GoogleCodeExporter commented 8 years ago
Great Catch! patch committed r934 

Original comment by heldersepu on 30 Jul 2010 at 1:42