From dadcc957cbce29d08a614c7d455c6a73bea47210 Mon Sep 17 00:00:00 2001 From: Ingo Date: Sun, 15 Mar 2015 17:35:28 +0100 Subject: [PATCH] Spot white balance tool's square does not get drawn under the cursor, Issue 2714 --- rtgui/cropwindow.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rtgui/cropwindow.cc b/rtgui/cropwindow.cc index 449215e58..2dfbe7f06 100755 --- a/rtgui/cropwindow.cc +++ b/rtgui/cropwindow.cc @@ -381,8 +381,9 @@ void CropWindow::buttonPress (int button, int type, int bstate, int x, int y) { rot_deg = 0; } else if (iarea->getToolMode () == TMSpotWB) { - screenCoordToImage (x, y, action_x, action_y); - iarea->spotWBSelected (action_x, action_y); + int spotx, spoty; + screenCoordToImage (x, y, spotx, spoty); + iarea->spotWBSelected (spotx, spoty); } else if (iarea->getToolMode () == TMCropSelect && cropgl) { state = SCropSelecting;