Bugfix: double click to zoom in/out now effective over Pickers

when the Color Picker mode is off.

see issue #1812
This commit is contained in:
Hombre 2016-10-08 00:44:59 +02:00
parent 222b8a7562
commit e16b2407bd

View File

@ -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;