From 68d466b2ee2285b58e4dea5741a3ffdfd549b66d 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 23547b101d..77be9f9c55 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