Skip to content

Commit

Permalink
fix crash in graphviz export due to invalidated iterators
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindkv authored and wwmayer committed Jan 11, 2017
1 parent 0e2cf2e commit 57850b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/App/Document.cpp
Expand Up @@ -615,6 +615,7 @@ void Document::exportGraphviz(std::ostream& out) const
if (i_in_deg_pair.first == in_edges.end()) {
removeEdges(in_edges, out_edges, i_out_deg_pair, [&](Edge e) { return target(e, DepList); });
changed = true;
i_out_deg_pair = out_edges.equal_range(*uvi);
}

// Remove in edges of nodes that don't have a single edge out
Expand Down

0 comments on commit 57850b5

Please sign in to comment.