[libshumate] view: Fix longitude validation check
- From: Corentin Noël <corentinnoel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libshumate] view: Fix longitude validation check
- Date: Fri, 5 Mar 2021 13:37:25 +0000 (UTC)
commit b65caf4f1b7c517e14d139412f64d5a1283b64a5
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Mar 5 10:34:59 2021 -0300
view: Fix longitude validation check
It certainly is never bigger than the maximum longitude!
shumate/shumate-view.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/shumate/shumate-view.c b/shumate/shumate-view.c
index fd4c9da..5e9eb76 100644
--- a/shumate/shumate-view.c
+++ b/shumate/shumate-view.c
@@ -928,7 +928,7 @@ shumate_view_go_to (ShumateView *view,
g_return_if_fail (SHUMATE_IS_VIEW (view));
g_return_if_fail (latitude >= SHUMATE_MIN_LATITUDE && latitude <= SHUMATE_MAX_LATITUDE);
- g_return_if_fail (longitude >= SHUMATE_MAX_LONGITUDE && longitude <= SHUMATE_MAX_LONGITUDE);
+ g_return_if_fail (longitude >= SHUMATE_MIN_LONGITUDE && longitude <= SHUMATE_MAX_LONGITUDE);
duration = priv->go_to_duration;
if (duration == 0) /* calculate duration from zoom level */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]