From c210e71def9c2ed1c6c067e3b78fee0d9959e6ca Mon Sep 17 00:00:00 2001 From: dbv Date: Mon, 5 Dec 2016 19:10:04 +0300 Subject: [PATCH] Issue #1916: Fatal error when create sketch on body Remove subshapes Fixed --- src/FeaturesPlugin/FeaturesPlugin_RemoveSubShapes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.2