]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1916: Fatal error when create sketch on body Remove subshapes
authordbv <dbv@opencascade.com>
Mon, 5 Dec 2016 16:10:04 +0000 (19:10 +0300)
committerdbv <dbv@opencascade.com>
Mon, 5 Dec 2016 16:10:04 +0000 (19:10 +0300)
Fixed

src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp

index 7279cf44644e6d2c92b26521e99ae1614367a9b9..6a4bf9216791ddedee104354759b86adb747065b 100644 (file)
@@ -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) {