From: mpv Date: Thu, 9 Jul 2015 13:46:23 +0000 (+0300) Subject: Fix for issue #736: placement crash X-Git-Tag: V_1.3.0~47 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2f43cb9c7f62a2538abd8123d69ed980cecff002;p=modules%2Fshaper.git Fix for issue #736: placement crash --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp b/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp index 63f25c921..dbc17b850 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Placement.cpp @@ -117,7 +117,7 @@ void FeaturesPlugin_Placement::execute() bool isPart = aContextRes->groupName() == ModelAPI_ResultPart::group(); std::shared_ptr aResultBody; - if (isPart) + if (!isPart) aResultBody = document()->createBody(data()); GeomAlgoAPI_Placement aFeature(aSlaveObject, aBaseObject, aSlaveShape, aBaseShape, isReverse, isCentering); if(!aFeature.isDone()) {