Spot white balance tool's square does not get drawn under the cursor, Issue 2714

This commit is contained in:
Ingo 2015-03-15 17:35:28 +01:00
parent 5a80715b5c
commit dadcc957cb

View File

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