]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for issue #736: placement crash
authormpv <mpv@opencascade.com>
Thu, 9 Jul 2015 13:46:23 +0000 (16:46 +0300)
committermpv <mpv@opencascade.com>
Thu, 9 Jul 2015 13:46:23 +0000 (16:46 +0300)
src/FeaturesPlugin/FeaturesPlugin_Placement.cpp

index 63f25c921c447afb0c3da63fa0f57d214da0000c..dbc17b85064795a380977657fafd2190b1fc6408 100644 (file)
@@ -117,7 +117,7 @@ void FeaturesPlugin_Placement::execute()
   bool isPart = aContextRes->groupName() == ModelAPI_ResultPart::group();
 
   std::shared_ptr<ModelAPI_ResultBody> aResultBody;
-  if (isPart) 
+  if (!isPart) 
     aResultBody = document()->createBody(data());
   GeomAlgoAPI_Placement aFeature(aSlaveObject, aBaseObject, aSlaveShape, aBaseShape, isReverse, isCentering);
   if(!aFeature.isDone()) {