]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_MultiTranslation.cpp
Salome HOME
Issue #3137: Crash when LinearCopy/AngularCopy of several parts
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_MultiTranslation.cpp
index 10368e91e643f8d0cac8bb6486611ee036cc5994..9f311df137ea6909fa03c345b30f955ab1617064 100644 (file)
@@ -209,8 +209,8 @@ void FeaturesPlugin_MultiTranslation::performOneDirection()
                                                aListOfTranslationAlgo, aCompound, "Translated");
 
       setResult(aResultBody, aResultIndex);
+      aResultIndex++;
     }
-    aResultIndex++;
   }
 
   // Remove the rest results if there were produced in the previous pass.
@@ -410,8 +410,8 @@ void FeaturesPlugin_MultiTranslation::performTwoDirection()
                                                aListOfTranslationAlgo, aCompound, "Translated");
 
       setResult(aResultBody, aResultIndex);
+      aResultIndex++;
     }
-    aResultIndex++;
   }
 
   // Remove the rest results if there were produced in the previous pass.