From d32db469f1c40a59554b8d97a25dcd7ea0c57e66 Mon Sep 17 00:00:00 2001 From: Antoine Regimbeau <antoine.regimbeau@c-s.fr> Date: Tue, 30 Jul 2019 14:35:06 +0200 Subject: [PATCH] Back to UpdateOutputInformation --- Modules/Applications/AppMathParserX/app/otbBandMathX.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx index eb396ea0a7..95a859ebbe 100644 --- a/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx +++ b/Modules/Applications/AppMathParserX/app/otbBandMathX.cxx @@ -306,7 +306,7 @@ private: } try { - math_filter->Update(); + math_filter->UpdateOutputInformation(); SetParameterDescription("exp", "Valid expression"); } catch(itk::ExceptionObject& err) @@ -315,10 +315,14 @@ private: // parser errors in the tooltip SetParameterDescription("exp", err.GetDescription()); // std::string error_string(err.GetDescription()); - // otbAppLogINFO("There was an error while parsing the expression giving " + // otbAppLogINFO("There was an error while parsing the expression given " // "its input:" + error_string ); } + catch(...) + { + SetParameterDescription("exp", "Other exception catched"); } + } void DoExecute() override { -- GitLab