diff options
author | Jiří Techet <techet@gmail.com> | 2010-05-23 16:32:47 +0200 |
---|---|---|
committer | Jiří Techet <techet@gmail.com> | 2010-05-23 16:32:47 +0200 |
commit | cae5080d46785774a6f38cf1f0036d9f5eb8610a (patch) | |
tree | 2964fc77ddc805d4c857bba703d40902d86c731e | |
parent | 1079c54d7daac7b24ea6e38b56eb59efaea645fe (diff) | |
download | libchamplain-cae5080d46785774a6f38cf1f0036d9f5eb8610a.tar.gz |
Check whether priv->map != NULL in view_load_visible_tiles()
Signed-off-by: Jiří Techet <techet@gmail.com>
-rw-r--r-- | 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; |