From e16b2407bdee4e3d60921f29b853b4ab594e93ed Mon Sep 17 00:00:00 2001 From: Hombre Date: Sat, 8 Oct 2016 00:44:59 +0200 Subject: [PATCH] Bugfix: double click to zoom in/out now effective over Pickers when the Color Picker mode is off. see issue #1812 --- rtgui/cropwindow.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/cropwindow.cc b/rtgui/cropwindow.cc index f59f9eb81..ca33a1b69 100644 --- a/rtgui/cropwindow.cc +++ b/rtgui/cropwindow.cc @@ -310,7 +310,7 @@ void CropWindow::buttonPress (int button, int type, int bstate, int x, int y) iarea->grabFocus (this); if (button == 1) { - if (type == GDK_2BUTTON_PRESS && onArea (CropImage, x, y) && !onArea (ColorPicker, x, y) && (state == SNormal || state == SCropImgMove)) { + if (type == GDK_2BUTTON_PRESS && onArea (CropImage, x, y) && iarea->getToolMode () != TMColorPicker && (state == SNormal || state == SCropImgMove)) { if (fitZoomEnabled) { if (fitZoom) { state = SNormal;