DependencyGraph: Ensure OriginFeatures get in the correct subgraph

This commit is contained in:
Stefan Tröger
2017-06-03 15:38:47 +02:00
committed by wmayer
parent fa4d67735f
commit 78cb881431

View File

@@ -399,8 +399,12 @@ void Document::exportGraphviz(std::ostream& out) const
if(CSSubgraphs) {
if(!sgraph) {
auto group = GeoFeatureGroupExtension::getGroupOfObject(docObj);
if(group)
sgraph = GraphList[group];
if(group) {
if(docObj->isDerivedFrom(App::OriginFeature::getClassTypeId()))
sgraph = GraphList[group->getExtensionByType<OriginGroupExtension>()->Origin.getValue()];
else
sgraph = GraphList[group];
}
}
if(!sgraph) {
if(docObj->isDerivedFrom(OriginFeature::getClassTypeId()))