]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #877: Reset order of symbols on delete of a constraint presentation
authorvsv <vitaly.smetannikov@opencascade.com>
Thu, 10 Sep 2015 13:33:47 +0000 (16:33 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Thu, 10 Sep 2015 13:33:47 +0000 (16:33 +0300)
src/SketcherPrs/SketcherPrs_PositionMgr.cpp

index 842eceba4c3ec96b3fb45f9128ed3fd5610cf454..2e361420d3995e655190a34f3d727bfc3dc9c9c2 100644 (file)
@@ -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<ObjectPtr>::const_iterator aListIt;