From ec4c37a0b4c6134a73133a93000f593940be042e Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@orfeo-toolbox.org> Date: Mon, 23 Mar 2009 12:03:15 +0100 Subject: [PATCH] BUG: Fixing a bug in the widget controller --- Code/Visualization/otbImageWidgetController.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/Visualization/otbImageWidgetController.cxx b/Code/Visualization/otbImageWidgetController.cxx index 0fec2a9d23..45a2d42a07 100644 --- a/Code/Visualization/otbImageWidgetController.cxx +++ b/Code/Visualization/otbImageWidgetController.cxx @@ -66,7 +66,8 @@ int ImageWidgetController::HandleWidgetEvent(std::string widgetId, int event) // Get the current handler handler = it.Get(); // Check if it listens to (widget,event) - found = found || handler->HandleWidgetEvent(widgetId,event); + bool newFound = handler->HandleWidgetEvent(widgetId,event); + found = found || newFound; ++it; } // If an handler was found, use it -- GitLab