From 4c721253dff91de1d6146a7fcef84d20df98da3c Mon Sep 17 00:00:00 2001 From: Emmanuel Rodriguez Date: Sun, 26 Apr 2009 10:17:11 +0200 Subject: [PATCH] Initialize priv->map in the constructor. Fix a call to champlain_view_set_size that didn't follow the coding guilde lines. --- champlain/champlain-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index df7c276..fa43c81 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -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; -- 2.39.5