[libchamplain] champlain-bounding-box: Include extremities in champlain_bounding_box_is_valid function
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain] champlain-bounding-box: Include extremities in champlain_bounding_box_is_valid function
- Date: Fri, 8 Apr 2016 22:37:42 +0000 (UTC)
commit 75c7018d6b9bbdcdebf6491903139c8b0ee9f244
Author: Marius Stanciu <stanciumarius94 gmail com>
Date: Mon Apr 4 21:58:02 2016 +0300
champlain-bounding-box: Include extremities in champlain_bounding_box_is_valid function
https://bugzilla.gnome.org/show_bug.cgi?id=764611
champlain/champlain-bounding-box.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/champlain/champlain-bounding-box.c b/champlain/champlain-bounding-box.c
index 5cd1b8e..2f067b4 100644
--- a/champlain/champlain-bounding-box.c
+++ b/champlain/champlain-bounding-box.c
@@ -211,10 +211,10 @@ champlain_bounding_box_is_valid (ChamplainBoundingBox *bbox)
g_return_val_if_fail (CHAMPLAIN_BOUNDING_BOX (bbox), FALSE);
return (bbox->left < bbox->right) && (bbox->bottom < bbox->top) &&
- (bbox->left > CHAMPLAIN_MIN_LONGITUDE) && (bbox->left < CHAMPLAIN_MAX_LONGITUDE) &&
- (bbox->right > CHAMPLAIN_MIN_LONGITUDE) && (bbox->right < CHAMPLAIN_MAX_LONGITUDE) &&
- (bbox->bottom > CHAMPLAIN_MIN_LATITUDE) && (bbox->bottom < CHAMPLAIN_MAX_LATITUDE) &&
- (bbox->top > CHAMPLAIN_MIN_LATITUDE) && (bbox->top < CHAMPLAIN_MAX_LATITUDE);
+ (bbox->left >= CHAMPLAIN_MIN_LONGITUDE) && (bbox->left <= CHAMPLAIN_MAX_LONGITUDE) &&
+ (bbox->right >= CHAMPLAIN_MIN_LONGITUDE) && (bbox->right <= CHAMPLAIN_MAX_LONGITUDE) &&
+ (bbox->bottom >= CHAMPLAIN_MIN_LATITUDE) && (bbox->bottom <= CHAMPLAIN_MAX_LATITUDE) &&
+ (bbox->top >= CHAMPLAIN_MIN_LATITUDE) && (bbox->top <= CHAMPLAIN_MAX_LATITUDE);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]