From 57850b59478c32b97351d8466f4a6f951df6a27a Mon Sep 17 00:00:00 2001 From: Eivind Kvedalen Date: Wed, 11 Jan 2017 10:06:19 +0100 Subject: [PATCH] fix crash in graphviz export due to invalidated iterators --- src/App/Document.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/App/Document.cpp b/src/App/Document.cpp index 23547b101..77be9f9c5 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -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