Skip to content
Snippets Groups Projects
Commit 44ab16dd authored by Aurélien Bricier's avatar Aurélien Bricier
Browse files

ENH: added duplicated option detection in extended filename

parent ec9e6844
No related branches found
No related tags found
No related merge requests found
......@@ -41,13 +41,21 @@ ExtendedFilenameHelper
boost::split(tmp, tmp2[i], boost::is_any_of("="), boost::token_compress_on);
if (tmp.size()>1)
{
m_OptionMap[tmp[0]]=tmp[1];
if (m_OptionMap[tmp[0]].empty())
{
m_OptionMap[tmp[0]]=tmp[1];
}
else
{
itkWarningMacro("Duplicate option detected: " << tmp[0] << ". Using value " << tmp[1] << ".");
}
}
}
}
}
}
ExtendedFilenameHelper::OptionMapType
ExtendedFilenameHelper
::GetOptionMap(void) const
......
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