From: mpv Date: Wed, 7 Sep 2016 12:56:50 +0000 (+0300) Subject: Fix for the issue #1733 X-Git-Tag: V_2.5.0~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d9000d2a8113f5359d13726eb0538b346797d04a;p=modules%2Fshaper.git Fix for the issue #1733 --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp b/src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp index 91ab7c7b0..1b8938544 100755 --- a/src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp @@ -82,7 +82,7 @@ void FeaturesPlugin_Rotation::execute() ResultPartPtr anOrigin = std::dynamic_pointer_cast(*aContext); ResultPartPtr aResultPart = document()->copyPart(anOrigin, data(), aResultIndex); aResultPart->setTrsf(*aContext, aTrsf); - setResult(aResultPart); + setResult(aResultPart, aResultIndex); } else { GeomAlgoAPI_Rotation aRotationAlgo(aBaseShape, anAxis, anAngle); diff --git a/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp b/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp index e33527784..e88996baf 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Translation.cpp @@ -85,7 +85,7 @@ void FeaturesPlugin_Translation::execute() ResultPartPtr anOrigin = std::dynamic_pointer_cast(*aContext); ResultPartPtr aResultPart = document()->copyPart(anOrigin, data(), aResultIndex); aResultPart->setTrsf(*aContext, aTrsf); - setResult(aResultPart); + setResult(aResultPart, aResultIndex); } else { GeomAlgoAPI_Translation aTranslationAlgo(aBaseShape, anAxis, aDistance);