Commit 840f4bae authored by David Nolden's avatar David Nolden

Try fixing a crash that sometimes happened, by copying the set before using...

Try fixing a crash that sometimes happened, by copying the set before using it(Seems like it was changed in the back)
parent 123ad42e
......@@ -1111,8 +1111,10 @@ Set BasicSetRepository::createSet(Index i) {
return createSetFromRanges(ranges);
}
Set BasicSetRepository::createSet(const std::set<Index>& indices) {
Set BasicSetRepository::createSet(const std::set<Index>& _indices) {
std::set<Index> indices(_indices); //Create a copy to prevent strange problems
std::vector<Index> ranges;
for( std::set<Index>::const_iterator it = indices.begin(); it != indices.end(); ++it )
......
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