Solving issue 1762: "Auto Levels does not work with 8-bit images" and issue 1148: "Auto White Balance doesn't work in a File Browser tab"

This commit is contained in:
natureh 510
2013-03-29 11:28:08 +01:00
parent 148c0cbca4
commit 5bd68ce99a
13 changed files with 187 additions and 202 deletions

View File

@@ -455,7 +455,7 @@ void ImageArea::setPointerMotionHListener (PointerMotionListener* pml) {
ToolMode ImageArea::getToolMode () {
if (listener)
if (listener && listener->getToolBar())
return listener->getToolBar()->getTool ();
else
return TMHand;
@@ -463,7 +463,7 @@ ToolMode ImageArea::getToolMode () {
void ImageArea::setToolHand () {
if (listener)
if (listener && listener->getToolBar())
listener->getToolBar()->setTool (TMHand);
}