From 2dc8aa5e8b51ef1e1b97ff53a7d771b7de185c44 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 10 Sep 2015 16:33:47 +0300 Subject: [PATCH] Issue #877: Reset order of symbols on delete of a constraint presentation --- src/SketcherPrs/SketcherPrs_PositionMgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/SketcherPrs/SketcherPrs_PositionMgr.cpp b/src/SketcherPrs/SketcherPrs_PositionMgr.cpp index 842eceba4..2e361420d 100644 --- a/src/SketcherPrs/SketcherPrs_PositionMgr.cpp +++ b/src/SketcherPrs/SketcherPrs_PositionMgr.cpp @@ -132,6 +132,12 @@ void SketcherPrs_PositionMgr::deleteConstraint(const SketcherPrs_SymbolPrs* theP aPosMap.erase(aPosMap.find(thePrs)); if (aPosMap.size() == 0) aToDel.push_back(aIt->first); + else { + PositionsMap::iterator aIt; + int i = 0; + for (aIt = aPosMap.begin(); aIt != aPosMap.end(); aIt++, i++) + aIt->second = i; + } } } std::list::const_iterator aListIt; -- 2.39.2