Skip to content

Commit

Permalink
DependencyGraph: Ensure OriginFeatures get in the correct subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
ickby committed Jun 17, 2017
1 parent c9b1b83 commit 4163282
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/App/Document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down

0 comments on commit 4163282

Please sign in to comment.