Links ensure uncyclic graph and correct groups

This commit is contained in:
Stefan Tröger
2017-02-10 06:55:19 +01:00
committed by wmayer
parent f0f7125a11
commit 0487b66738
4 changed files with 106 additions and 9 deletions

View File

@@ -274,9 +274,10 @@ std::vector< DocumentObject* > GeoFeatureGroupExtension::getCSRelevantLinks(Docu
result.insert(result.end(), out.begin(), out.end());
}
//there will be many douplicates
//there will be many douplicates and also the passed obj in
std::sort(result.begin(), result.end());
result.erase(std::unique(result.begin(), result.end()), result.end());
result.erase(std::remove(result.begin(), result.end(), obj), result.end());
return result;
}