]> err.no Git - mapper/commitdiff
MapWidget: Fix calculation of world size
authorKaj-Michael Lang <milang@tal.org>
Wed, 21 May 2008 11:38:06 +0000 (14:38 +0300)
committerKaj-Michael Lang <milang@tal.org>
Wed, 21 May 2008 11:38:06 +0000 (14:38 +0300)
src/gtkmap.c

index 2660ae36ad90451234ede2bfe52809972ee4047e..c355bb22d4d5fc5575895c7016784b83ee595548 100644 (file)
@@ -486,15 +486,17 @@ priv->base_tiley=0;
 
 priv->draw_width=4;
 
-priv->zoom=8;
 priv->min_zoom=0;
 priv->max_zoom=17;
 priv->zoom_to_mouse=TRUE;
 
 /* Start with a sensible location and manual mode */
 priv->center_mode=CENTER_MANUAL;
+priv->zoom=0;
+priv->world_size_tiles=unit2tile(GTK_MAP_WORLD_SIZE_UNITS);
+priv->zoom=8;
 latlon2unit(60.45, 22.25,&priv->center.unitx, &priv->center.unity);
-priv->world_size_tiles = unit2tile(GTK_MAP_WORLD_SIZE_UNITS);
+
 priv->speed=-1;
 priv->speed_gc=priv->speed_gc1;