From 92e5f98d59afac25ee16685e47818472216dc4b1 Mon Sep 17 00:00:00 2001 From: torger Date: Thu, 31 Oct 2013 14:35:22 +0100 Subject: [PATCH] Issue 2012: fixed cropwindow gripping bug --- rtgui/cropwindow.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/rtgui/cropwindow.cc b/rtgui/cropwindow.cc index 4bfe01eac..75023c67e 100644 --- a/rtgui/cropwindow.cc +++ b/rtgui/cropwindow.cc @@ -543,28 +543,32 @@ bool CropWindow::onArea (CursorArea a, int x, int y) { x1>cropHandler.cropParams.x+CROPRESIZEBORDER && x1cropHandler.cropParams.y-CROPRESIZEBORDER && - y1=ypos+imgY; case CropBottom: translateCoord (x, y, x1, y1); return cropHandler.cropParams.enabled && x1>cropHandler.cropParams.x+CROPRESIZEBORDER && x1cropHandler.cropParams.y+cropHandler.cropParams.h-1-CROPRESIZEBORDER && - y1cropHandler.cropParams.y+CROPRESIZEBORDER && y1cropHandler.cropParams.x-CROPRESIZEBORDER && - x1=xpos+imgX; case CropRight: translateCoord (x, y, x1, y1); return cropHandler.cropParams.enabled && y1>cropHandler.cropParams.y+CROPRESIZEBORDER && y1cropHandler.cropParams.x+cropHandler.cropParams.w-1-CROPRESIZEBORDER && - x1