From: Pierre-Luc Beaudoin Date: Thu, 20 Nov 2008 04:06:12 +0000 (-0500) Subject: Fix center_on on start up X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=639a40639a1ceda079959423d20db77586e18b37;p=libchamplain Fix center_on on start up The map would be centered at (0,0) no matter what coord were passed --- diff --git a/champlain/champlainview.c b/champlain/champlainview.c index 59de46c..749d6d6 100644 --- a/champlain/champlainview.c +++ b/champlain/champlainview.c @@ -661,8 +661,8 @@ champlain_view_set_size (ChamplainView *view, guint width, guint height) ChamplainViewPrivate *priv = CHAMPLAIN_VIEW_GET_PRIVATE (view); gdouble lat, lon; - lat = viewport_get_current_latitude (priv); - lon = viewport_get_current_longitude (priv); + lat = priv->latitude; + lon = priv->longitude; priv->viewport_size.width = width; priv->viewport_size.height = height; @@ -675,6 +675,7 @@ champlain_view_set_size (ChamplainView *view, guint width, guint height) else map_load_visible_tiles (priv->map, priv->viewport_size, priv->offline); } + static void update_license (ChamplainView *view) {