]> err.no Git - libchamplain/commitdiff
Fix Bug 583502: Center_on can be wrong
authorPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 1 Jun 2009 02:37:34 +0000 (22:37 -0400)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 1 Jun 2009 02:37:34 +0000 (22:37 -0400)
The TidyViewport's Adjustments were not initialized until
the size was set.

champlain/champlain-view.c

index 7bcf6fe4c7dfb8c8e0238b54822083175991cc28..c6013333e98a9668ac2928885f869e2c6f780289 100644 (file)
@@ -853,6 +853,8 @@ champlain_view_init (ChamplainView *view)
   champlain_view_set_size (view, priv->viewport_size.width,
       priv->viewport_size.height);
 
+  resize_viewport (view);
+
   priv->state = CHAMPLAIN_STATE_DONE;
   g_object_notify (G_OBJECT (view), "state");
 }