fix crash in graphviz export due to invalidated iterators

This commit is contained in:
Eivind Kvedalen
2017-01-11 10:06:19 +01:00
committed by wmayer
parent f39dfdc7b6
commit 68d466b2ee

View File

@@ -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