From 2d88c79d4a624f1a6624f5d229f709db45215268 Mon Sep 17 00:00:00 2001 From: Christophe Palmann <christophe.palmann@c-s.fr> Date: Tue, 2 Dec 2014 12:24:56 +0100 Subject: [PATCH] ENH: bandmathx app --- Applications/Utils/otbBandMathX.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Applications/Utils/otbBandMathX.cxx b/Applications/Utils/otbBandMathX.cxx index bc49606954..409f21bfd5 100644 --- a/Applications/Utils/otbBandMathX.cxx +++ b/Applications/Utils/otbBandMathX.cxx @@ -210,12 +210,9 @@ private: if ( IsParameterEnabled("exp") ) { - std::vector<std::string> stringList = GetParameterStringList("exp"); - for(int s=0; s<stringList.size(); s++) - { - otbAppLogINFO( << stringList[s] << std::endl ); - m_Filter->SetExpression(stringList[s]); - } + std::string string = GetParameterString("exp"); + otbAppLogINFO( << string << std::endl ); + m_Filter->SetExpression(string); } if ( IsParameterEnabled("incontext") ) -- GitLab