[libchamplain: 34/45] Fix clone_index check in viewport_motion_cb.
- From: Jiří Techet <jiritechet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libchamplain: 34/45] Fix clone_index check in viewport_motion_cb.
- Date: Sun, 14 Aug 2016 12:31:10 +0000 (UTC)
commit b48d0fd825c5ed501c562831145744b48235d079
Author: Marius Stanciu <stanciumarius94 gmail com>
Date: Sun Aug 7 20:13:06 2016 +0300
Fix clone_index check in viewport_motion_cb.
champlain/champlain-view.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c
index 91b3b45..2fd4688 100644
--- a/champlain/champlain-view.c
+++ b/champlain/champlain-view.c
@@ -1684,7 +1684,7 @@ viewport_motion_cb (G_GNUC_UNUSED ClutterActor *actor,
gint original_index = g_list_index (priv->user_layer_slots, priv->user_layers);
gint clone_index = (event->x + priv->viewport_x) / map_width;
- if (clone_index != original_index && clone_index <= priv->num_clones + 1)
+ if (clone_index != original_index && clone_index < priv->num_clones + 1)
swap_user_layer_slots (view, original_index, clone_index);
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]