diff --git a/Applications/Utils/otbBandMathX.cxx b/Applications/Utils/otbBandMathX.cxx index bc49606954ed7979c5c3c60633948ad539faf7c6..409f21bfd56fd5c03de3261ab4f06b1b9bf5487c 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") )