Skip to content
Snippets Groups Projects
Commit 5b1df934 authored by Julien Malik's avatar Julien Malik
Browse files

ENH: support choice in GetParameterString

parent 6f0a6011
No related branches found
No related tags found
No related merge requests found
......@@ -376,7 +376,6 @@ void Application::SetParameterString(std::string parameter, std::string value)
}
}
void Application::SetParameterOutputImage(std::string parameter, VectorImageType* value)
{
Parameter* param = GetParameterByKey(parameter);
......@@ -468,7 +467,12 @@ std::string Application::GetParameterString(std::string parameter)
std::string ret;
Parameter* param = GetParameterByKey(parameter);
if (dynamic_cast<StringParameter*>(param))
if (dynamic_cast<ChoiceParameter*>(param))
{
ChoiceParameter* paramDown = dynamic_cast<ChoiceParameter*>(param);
ret = paramDown->GetChoiceName( paramDown->GetValue() );
}
else if (dynamic_cast<StringParameter*>(param))
{
StringParameter* paramDown = dynamic_cast<StringParameter*>(param);
ret = paramDown->GetValue();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment