From 25c7b1e9be3f5c1e924a1e34f4ec20ff58d3fb3c Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 4 Oct 2018 00:33:19 +0200 Subject: [PATCH] in topologicalSort check for valid iterator --- src/App/Document.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/App/Document.cpp b/src/App/Document.cpp index faaf50a10b..3063938a47 100644 --- a/src/App/Document.cpp +++ b/src/App/Document.cpp @@ -2408,7 +2408,8 @@ std::vector DocumentP::topologicalSort(const std::vectorsecond = outListMapIt->second - 1; + if (outListMapIt != countMap.end()) + outListMapIt->second = outListMapIt->second - 1; } ret.push_back(rootObjeIt->first);