diff --git a/rtgui/toolpanelcoord.cc b/rtgui/toolpanelcoord.cc index 8fae98340..495f056a1 100644 --- a/rtgui/toolpanelcoord.cc +++ b/rtgui/toolpanelcoord.cc @@ -428,14 +428,21 @@ void ToolPanelCoordinator::spotWBselected (int x, int y, Thumbnail* thm) { return; // toolBar->setTool (TOOL_HAND); - if (x>0 && y>0) { + int rect=whitebalance->getSize (); + int ww= ipc->getFullWidth(); + int hh= ipc->getFullHeight(); + + if (x-rect>0 && y-rect>0 && x+rectgetSpotWB (x, y, whitebalance->getSize (), temp, green); + ipc->getSpotWB (x, y, rect, temp, green); whitebalance->setWB (temp, green); } } + + + void ToolPanelCoordinator::autoCropRequested () { if (!ipc)