diff --git a/Modules/Wrappers/ApplicationEngine/src/otbWrapperOutputProcessXMLParameter.cxx b/Modules/Wrappers/ApplicationEngine/src/otbWrapperOutputProcessXMLParameter.cxx index bd278c282027132e6fd2f7a1f5c3f64eca3e48d2..3d8be1944de6a8a9052cae436d931320ac28b3ad 100644 --- a/Modules/Wrappers/ApplicationEngine/src/otbWrapperOutputProcessXMLParameter.cxx +++ b/Modules/Wrappers/ApplicationEngine/src/otbWrapperOutputProcessXMLParameter.cxx @@ -377,15 +377,14 @@ OutputProcessXMLParameter::ParseGroup(const std::string& group) } } m_Node->LinkEndChild(n_Parameter); - - // dig into Choice parameter - if (type == ParameterType_Choice) - { - std::string choiceGroup(key); - choiceGroup += '.'; - choiceGroup += value; - this->ParseGroup(choiceGroup); - } + } + // dig into Choice parameter + if (type == ParameterType_Choice) + { + std::string choiceGroup(key); + choiceGroup += '.'; + choiceGroup += m_Appli->GetParameterString(key); + this->ParseGroup(choiceGroup); } } }