From: nds Date: Fri, 23 May 2014 04:28:32 +0000 (+0400) Subject: Crash on the abort the sketch operation. X-Git-Tag: V_0.2~22^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=eea6b0cd09b60b0a051ca77126feaff94e249ce7;p=modules%2Fshaper.git Crash on the abort the sketch operation. --- 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;