[libchamplain] champlain-view: Add valid bouding-box check for champlain_view_set_world
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] champlain-view: Add valid bouding-box check for champlain_view_set_world
- Date: Sat, 2 Apr 2016 18:51:10 +0000 (UTC)
commit 635b8fb6ea2991450e5ea0d3e45c0bb4b01cb2b6
Author: Marius Stanciu <stanciumarius94 gmail com>
Date: Sat Apr 2 19:31:05 2016 +0300
champlain-view: Add valid bouding-box check for champlain_view_set_world
https://bugzilla.gnome.org/show_bug.cgi?id=764433
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 97d2f01..bb4850c 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -2013,6 +2013,9 @@ champlain_view_set_world (ChamplainView *view,
g_return_if_fail (CHAMPLAIN_IS_VIEW (view));
g_return_if_fail (bbox != NULL);
+ if (!champlain_bounding_box_is_valid (bbox))
+ return;
+
ChamplainViewPrivate *priv = view->priv;
gdouble latitude, longitude;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]