From: dbv Date: Mon, 5 Dec 2016 16:10:04 +0000 (+0300) Subject: Issue #1916: Fatal error when create sketch on body Remove subshapes X-Git-Tag: V_2.6.0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c210e71def9c2ed1c6c067e3b78fee0d9959e6ca;p=modules%2Fshaper.git Issue #1916: Fatal error when create sketch on body Remove subshapes Fixed --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp b/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp index 7279cf446..6a4bf9216 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp @@ -103,7 +103,7 @@ void FeaturesPlugin_RemoveSubShapes::execute() if(!aBaseShape.get()) { return; } - GeomShapePtr aResultShape = aBaseShape->emptyCopied(); + aResultShape = aBaseShape->emptyCopied(); // Copy sub-shapes from list to new shape. for(int anIndex = 0; anIndex < aSubsNb; ++anIndex) {