]> err.no Git - libchamplain/commitdiff
Fix Bug 569984 – Current position lost on window resize
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 10 Mar 2009 19:11:48 +0000 (21:11 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Tue, 10 Mar 2009 19:11:48 +0000 (21:11 +0200)
champlain/champlain-view.c

index 43d7c28158e0cf6e13a5ae4a66256e9a52dbfeaf..431cbeb9b3568e96687880a081907e8a83786922 100644 (file)
@@ -746,6 +746,9 @@ viewport_x_changed_cb (GObject *gobject,
   priv->viewport_size.x = rect.x;
   priv->viewport_size.y = rect.y;
 
+  priv->longitude = viewport_get_current_longitude (priv);
+  priv->latitude = viewport_get_current_latitude (priv);
+
   view_load_visible_tiles (view);
   view_tiles_reposition (view);