]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Crash on the abort the sketch operation.
authornds <natalia.donis@opencascade.com>
Fri, 23 May 2014 04:28:32 +0000 (08:28 +0400)
committernds <natalia.donis@opencascade.com>
Fri, 23 May 2014 04:28:32 +0000 (08:28 +0400)
src/PartSet/PartSet_OperationSketch.cpp

index c43d16ef0a87a310c29ee1f3d3bbdf2be38993ee..e83e133193014b32e297e2174f667abfb8dc75cc 100644 (file)
@@ -106,6 +106,8 @@ std::map<boost::shared_ptr<ModelAPI_Feature>, boost::shared_ptr<GeomAPI_Shape> >
                                                                   aLast = aFeatures.end();
   for (; anIt != aLast; anIt++) {
     aFeature = boost::dynamic_pointer_cast<SketchPlugin_Feature>(*anIt);
+    if (!aFeature)
+      continue;
     boost::shared_ptr<GeomAPI_Shape> aPreview = aFeature->preview();
     if (aPreview)
       aPreviewMap[aFeature] = aPreview;