diff --git a/Code/ApplicationEngine/otbWrapperChoiceParameter.cxx b/Code/ApplicationEngine/otbWrapperChoiceParameter.cxx index 9cc37b50ce5db34438d8c2adb95286389e529283..b459fe96694f8e0889e6b3183cfb4d1dc686459a 100644 --- a/Code/ApplicationEngine/otbWrapperChoiceParameter.cxx +++ b/Code/ApplicationEngine/otbWrapperChoiceParameter.cxx @@ -40,6 +40,10 @@ ChoiceParameter::AddChoice( std::string choicekey, std::string choiceName ) choice.m_Name = choiceName; choice.m_AssociatedParameter = ParameterGroup::New(); m_ChoiceList.push_back(choice); + + // Add the associated parameter as a child + // in order to not have a gap in the children hierarchy + this->AddChild(choice.m_AssociatedParameter.GetPointer()); } std::string