From: Pierre-Luc Beaudoin Date: Sun, 22 Mar 2009 20:52:29 +0000 (+0200) Subject: Fix Bug 575139: Corrupted map when double clicking at max level X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca818400a8cbd866f5a317950166ebcdf57e8437;p=libchamplain 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. --- 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;