From: Kaj-Michael Lang Date: Wed, 21 May 2008 11:38:06 +0000 (+0300) Subject: MapWidget: Fix calculation of world size X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=154b69165b71b42f89eb6d57c50ea360ef0bd4e0;p=mapper MapWidget: Fix calculation of world size --- diff --git a/src/gtkmap.c b/src/gtkmap.c index 2660ae3..c355bb2 100644 --- a/src/gtkmap.c +++ b/src/gtkmap.c @@ -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;