]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_Tools.cpp
Salome HOME
Issue #2999: Provide initialization of deviation coefficient for all presentations
[modules/shaper.git] / src / ModuleBase / ModuleBase_Tools.cpp
index e41847bf8850f85ab1bab8fb234f8d7f7517056f..a9f463969f9e92b4d10f016838170e48e2ca1f66 100644 (file)
@@ -456,6 +456,8 @@ void setDefaultDeviationCoefficient(const TopoDS_Shape& theShape,
 {
   if (theShape.IsNull())
     return;
+  if (theDrawer.IsNull())
+    return;
 
   std::shared_ptr<GeomAPI_Shape> aGeomShape(new GeomAPI_Shape());
   aGeomShape->setImpl(new TopoDS_Shape(theShape));