Salome HOME
Fix changing the list of objects of multi-translation and multi-rotation features
authorazv <azv@opencascade.com>
Mon, 15 Jun 2015 12:19:57 +0000 (15:19 +0300)
committerazv <azv@opencascade.com>
Mon, 15 Jun 2015 12:19:57 +0000 (15:19 +0300)
src/SketchPlugin/SketchPlugin_MultiRotation.cpp
src/SketchPlugin/SketchPlugin_MultiTranslation.cpp

index d4cf1ec716bc09175e5644225b62e131756af982..e29a522232dde3a3025e48ac96af99ac62b5aea6 100644 (file)
@@ -100,6 +100,7 @@ void SketchPlugin_MultiRotation::execute()
   for (; aUsedIter != isUsed.end(); aUsedIter++) {
     if (!(*aUsedIter)) {
       aRefListOfShapes->remove(*anInitIter);
+      aRefListOfRotated->remove(*aTargetIter++);
       for (int i = 0; i < aCurrentNbCopies && aTargetIter != aTargetList.end(); i++, aTargetIter++) {
         aRefListOfRotated->remove(*aTargetIter);
         // remove the corresponding feature from the sketch
index 715f166507b28da2b627029d519782d01363beaf..d771b3101ebc1c6dbedeeb0ede18f6e7696cde3a 100644 (file)
@@ -100,6 +100,7 @@ void SketchPlugin_MultiTranslation::execute()
   for (; aUsedIter != isUsed.end(); aUsedIter++) {
     if (!(*aUsedIter)) {
       aRefListOfShapes->remove(*anInitIter);
+      aRefListOfTranslated->remove(*aTargetIter++);
       for (int i = 0; i < aCurrentNbCopies && aTargetIter != aTargetList.end(); i++, aTargetIter++) {
         aRefListOfTranslated->remove(*aTargetIter);
         // remove the corresponding feature from the sketch