From eea6b0cd09b60b0a051ca77126feaff94e249ce7 Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 23 May 2014 08:28:32 +0400 Subject: [PATCH] Crash on the abort the sketch operation. --- src/PartSet/PartSet_OperationSketch.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PartSet/PartSet_OperationSketch.cpp b/src/PartSet/PartSet_OperationSketch.cpp index c43d16ef0..e83e13319 100644 --- a/src/PartSet/PartSet_OperationSketch.cpp +++ b/src/PartSet/PartSet_OperationSketch.cpp @@ -106,6 +106,8 @@ std::map, boost::shared_ptr > aLast = aFeatures.end(); for (; anIt != aLast; anIt++) { aFeature = boost::dynamic_pointer_cast(*anIt); + if (!aFeature) + continue; boost::shared_ptr aPreview = aFeature->preview(); if (aPreview) aPreviewMap[aFeature] = aPreview; -- 2.39.2