diff options
author | Marius Stanciu <stanciumarius94@gmail.com> | 2016-08-08 18:27:44 +0300 |
---|---|---|
committer | Marius Stanciu <stanciumarius94@gmail.com> | 2016-08-08 18:27:44 +0300 |
commit | 34eb2bb4b0db0a0ae7c965d23de52bd1651ca04d (patch) | |
tree | 7a4f4a04249054680e66371bf4cf1b85e26c6b1b | |
parent | 14f7d5eed78fd8f505f359d19c663747bb82a886 (diff) | |
download | libchamplain-34eb2bb4b0db0a0ae7c965d23de52bd1651ca04d.tar.gz |
Enable get_map_size in champlain_path_layer to return the sizes separately.
-rw-r--r-- | champlain/champlain-path-layer.c | 7 |
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; } |