From a0639e4c81ada57ae85459dcd3ca7e5d941a3c9f Mon Sep 17 00:00:00 2001 From: azv Date: Mon, 15 Jun 2015 15:19:57 +0300 Subject: [PATCH] Fix changing the list of objects of multi-translation and multi-rotation features --- src/SketchPlugin/SketchPlugin_MultiRotation.cpp | 1 + src/SketchPlugin/SketchPlugin_MultiTranslation.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/SketchPlugin/SketchPlugin_MultiRotation.cpp b/src/SketchPlugin/SketchPlugin_MultiRotation.cpp index d4cf1ec71..e29a52223 100644 --- a/src/SketchPlugin/SketchPlugin_MultiRotation.cpp +++ b/src/SketchPlugin/SketchPlugin_MultiRotation.cpp @@ -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 diff --git a/src/SketchPlugin/SketchPlugin_MultiTranslation.cpp b/src/SketchPlugin/SketchPlugin_MultiTranslation.cpp index 715f16650..d771b3101 100644 --- a/src/SketchPlugin/SketchPlugin_MultiTranslation.cpp +++ b/src/SketchPlugin/SketchPlugin_MultiTranslation.cpp @@ -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 -- 2.39.2