summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Stanciu <stanciumarius94@gmail.com>2016-08-08 18:27:44 +0300
committerMarius Stanciu <stanciumarius94@gmail.com>2016-08-08 18:27:44 +0300
commit34eb2bb4b0db0a0ae7c965d23de52bd1651ca04d (patch)
tree7a4f4a04249054680e66371bf4cf1b85e26c6b1b
parent14f7d5eed78fd8f505f359d19c663747bb82a886 (diff)
downloadlibchamplain-34eb2bb4b0db0a0ae7c965d23de52bd1651ca04d.tar.gz
Enable get_map_size in champlain_path_layer to return the sizes separately.
-rw-r--r--champlain/champlain-path-layer.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/champlain/champlain-path-layer.c b/champlain/champlain-path-layer.c
index 72cc613..dc3baf8 100644
--- a/champlain/champlain-path-layer.c
+++ b/champlain/champlain-path-layer.c
@@ -520,8 +520,11 @@ get_map_size (ChamplainView *view, gint *width, gint *height)
zoom_level);
cols = champlain_map_source_get_column_count (map_source,
zoom_level);
- *width = size * rows;
- *height = size * cols;
+ if (width)
+ *width = size * rows;
+
+ if (height)
+ *height = size * cols;
}