Commit 684814b1 authored by Julien Osman's avatar Julien Osman
Browse files

BUG: Consider the case of only one matching key in XMLMetadataSupplier::GetNumberOf

parent 670398b8
......@@ -250,6 +250,8 @@ unsigned int XMLMetadataSupplier::GetNumberOf(std::string const & path) const
auto sub = after.substr(1, after.find("."));
idx.insert(std::stoi(sub));
}
else if(after.size() > 0 && after.compare(0, 1, ".") == 0)
idx.insert(0);
}
return idx.size();
}
......
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