Commit bbde8a53 authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: bad merge on ListViewParameter

parent 3140db8b
......@@ -157,13 +157,12 @@ ListViewParameter::SetSelectedNames(std::vector<std::string> selectedNames)
std::vector<int> selectedItems;
std::vector<std::string> names = this->GetChoiceNames();
if(m_SingleSelection && m_SelectedNames.size() > 1)
if(m_SingleSelection && selectedNames.size() > 1)
{
itkExceptionMacro(<<"Single selection mode is on, but there are "<<m_SelectedNames.size()<<" selected items");
itkExceptionMacro(<<"Single selection mode is on, but there are "<<selectedNames.size()<<" selected items");
}
for(unsigned int i=0; i<m_SelectedNames.size(); i++)
for(unsigned int i=0; i<selectedNames.size(); i++)
{
const std::string selectedName = selectedNames[i];
unsigned int j(0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment