[Xastir-dev] Nifty zoom bug

Jack Twilley jmt at twilley.org
Sat Dec 6 19:02:56 EST 2003


WARNING: Unsanitized content follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

How to recreate the bug I just discovered.

 * Set your zoom level to 1.

 * Use the "zoom in" button to try to zoom in.  
   Nothing happens.  This is good.

 * Use the "10% in" button to try to zoom in.  
   Something happens.  This is bad. :-)

What happens next?

The "Loading Maps..." window is displayed, the watch icon shows up and
nothing else happens.  truss shows SIGNAL 27 being called repeatedly.

Interrupting the xastir session and starting another one brings up an
amusing message:

Found out-of-range or non-existent value (327680) for SCREEN_ZOOM in config file, changing to 327680

I have never been happier for having implemented max zoom levels than
at this moment. ;-)  It proceeds to draw the map window at zoom level
327680, which reduces the world shapefile to roughly the size of a
credit card if it's visible.

After maps are loaded, the following messages are displayed:

convert_from_xastir_coordinates:X out-of-range (too low):4162444911
convert_from_xastir_coordinates:X out-of-range (too high):174186095

I suspect this is an artifact of such a high zoom level.

Jack.
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/0m42GPFSfAB/ezgRApExAJ91rArs+wOqSw6geJ8GRPkoghsJJQCgjDg3
GeXUtIv1Clg0PdG91dssVeM=
=VUix
-----END PGP SIGNATURE-----



More information about the Xastir-dev mailing list