]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #1733
authormpv <mpv@opencascade.com>
Wed, 7 Sep 2016 12:56:50 +0000 (15:56 +0300)
committermpv <mpv@opencascade.com>
Wed, 7 Sep 2016 12:57:03 +0000 (15:57 +0300)
src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp
src/FeaturesPlugin/FeaturesPlugin_Translation.cpp

index 91ab7c7b09b2335bdd68758f099b1549bcda1f3e..1b8938544e2f927e467decd38a936e58dc347fab 100755 (executable)
@@ -82,7 +82,7 @@ void FeaturesPlugin_Rotation::execute()
       ResultPartPtr anOrigin = std::dynamic_pointer_cast<ModelAPI_ResultPart>(*aContext);
       ResultPartPtr aResultPart = document()->copyPart(anOrigin, data(), aResultIndex);
       aResultPart->setTrsf(*aContext, aTrsf);
-      setResult(aResultPart);
+      setResult(aResultPart, aResultIndex);
     } else {
       GeomAlgoAPI_Rotation aRotationAlgo(aBaseShape, anAxis, anAngle);
 
index e335277846986784435cb6a3cde322cc9736273e..e88996bafb4cf692e43861f54eceb2390c7df20a 100644 (file)
@@ -85,7 +85,7 @@ void FeaturesPlugin_Translation::execute()
       ResultPartPtr anOrigin = std::dynamic_pointer_cast<ModelAPI_ResultPart>(*aContext);
       ResultPartPtr aResultPart = document()->copyPart(anOrigin, data(), aResultIndex);
       aResultPart->setTrsf(*aContext, aTrsf);
-      setResult(aResultPart);
+      setResult(aResultPart, aResultIndex);
     } else {
       GeomAlgoAPI_Translation aTranslationAlgo(aBaseShape, anAxis, aDistance);