]> err.no Git - libchamplain/commitdiff
Initialize priv->map in the constructor.
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sun, 26 Apr 2009 08:17:11 +0000 (10:17 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Sun, 26 Apr 2009 15:44:39 +0000 (11:44 -0400)
Fix a call to champlain_view_set_size that didn't follow the coding guilde lines.

champlain/champlain-view.c

index df7c27690c2b84b043507e9e4e61c2a982927a10..fa43c813e5d614f58ce733d70390b4db39f838ba 100644 (file)
@@ -783,6 +783,7 @@ champlain_view_init (ChamplainView *view)
   priv->latitude = 0.0f;
   priv->longitude = 0.0f;
   priv->goto_context = NULL;
+  priv->map = NULL;
 
   /* Setup viewport */
   priv->viewport = g_object_ref (tidy_viewport_new ());
@@ -819,7 +820,7 @@ champlain_view_init (ChamplainView *view)
       priv->user_layers);
   clutter_actor_raise (priv->user_layers, priv->map_layer);
 
-  champlain_view_set_size(view, priv->viewport_size.width,
+  champlain_view_set_size (view, priv->viewport_size.width,
       priv->viewport_size.height);
 
   priv->state = CHAMPLAIN_STATE_DONE;