Skip to content
Snippets Groups Projects
Commit 69a07cdc authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

BUG: fix handling of proxy on group parameters

parent 17bc376e
No related branches found
No related tags found
No related merge requests found
...@@ -756,8 +756,9 @@ ParameterGroup::GetParameterByKey(std::string name, bool follow) ...@@ -756,8 +756,9 @@ ParameterGroup::GetParameterByKey(std::string name, bool follow)
itkExceptionMacro(<< "Could not find parameter " << name) itkExceptionMacro(<< "Could not find parameter " << name)
} }
// follow proxy parameters // follow proxy parameters (resolve intermediate group parameter because
if (follow) // we need to get to the requested parameter)
if (follow || splitName.size() > 1)
{ {
Parameter *rawParam = this->ResolveParameter(parentParam.GetPointer()); Parameter *rawParam = this->ResolveParameter(parentParam.GetPointer());
parentParam = rawParam; parentParam = rawParam;
......
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