From ca818400a8cbd866f5a317950166ebcdf57e8437 Mon Sep 17 00:00:00 2001 From: Pierre-Luc Beaudoin Date: Sun, 22 Mar 2009 22:52:29 +0200 Subject: [PATCH] Fix Bug 575139: Corrupted map when double clicking at max level Even though the fix to 558020 also fixed this issue, there was a slight undesirable translation happening. --- champlain/champlain-view.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/champlain/champlain-view.c b/champlain/champlain-view.c index 127c3e7..84d71eb 100644 --- a/champlain/champlain-view.c +++ b/champlain/champlain-view.c @@ -884,6 +884,11 @@ finger_scroll_button_press_cb (ClutterActor *actor, if (priv->zoom_on_double_click && event->button == 1 && event->click_count == 2) { + /* If at last zoom level, don't do anything */ + if (priv->zoom_level == + champlain_map_source_get_max_zoom_level (priv->map_source)) + return FALSE; + gint actor_x, actor_y; gint rel_x, rel_y; -- 2.39.5