[libchamplain/libchamplain-0-4] Check whether priv->map != NULL in view_load_visible_tiles()



commit cae5080d46785774a6f38cf1f0036d9f5eb8610a
Author: JiÅ?í Techet <techet gmail com>
Date:   Sun May 23 16:32:47 2010 +0200

    Check whether priv->map != NULL in view_load_visible_tiles()
    
    Signed-off-by: JiÅ?í Techet <techet gmail com>

 champlain/champlain-view.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index e3fef74..7994d55 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -2329,6 +2329,9 @@ view_load_visible_tiles (ChamplainView *view)
   gint size;
   ChamplainZoomLevel *level;
 
+  if (!priv->map)
+    return;
+
   viewport.x += priv->anchor.x;
   viewport.y += priv->anchor.y;
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]