Salome HOME
Composite Feature implementation. Sketch now is Composite.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Extrusion.cpp
index 60ee2b6898bd0f8d6b5e89f9beb9f7de43b227d3..0e997edafe6fe27d0eda36920a0cdb026c80a0e9 100644 (file)
@@ -35,6 +35,8 @@ void FeaturesPlugin_Extrusion::execute()
     return;
   boost::shared_ptr<GeomAPI_Shape> aFace = 
     boost::dynamic_pointer_cast<GeomAPI_Shape>(aFaceRef->value());
+  if (!aFace)
+    return;
 
   double aSize = data()->real(FeaturesPlugin_Extrusion::SIZE_ID())->value();
   if (data()->boolean(FeaturesPlugin_Extrusion::REVERSE_ID())->value())