]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix of crash on initialization of the Viewer in SALOME
authormpv <mpv@opencascade.com>
Fri, 30 Mar 2018 12:16:36 +0000 (15:16 +0300)
committermpv <mpv@opencascade.com>
Fri, 30 Mar 2018 12:16:36 +0000 (15:16 +0300)
src/ModuleBase/ModuleBase_Tools.cpp

index bd50ee6873953b540653130d56877a4836106cd3..10f191b27df6c444f18b8ee04dbcc876e2da5ed6 100755 (executable)
@@ -1143,6 +1143,8 @@ void setPointBallHighlighting(AIS_Shape* theAIS)
   Handle(Graphic3d_AspectMarker3d) anAspect;
   Handle(Prs3d_Drawer) aDrawer = theAIS->DynamicHilightAttributes();
   if (aDrawer.IsNull()) {
+    if (ModuleBase_IViewer::DefaultHighlightDrawer.IsNull())
+      return;
     aDrawer = new Prs3d_Drawer(*ModuleBase_IViewer::DefaultHighlightDrawer);
     if (!aDrawer->HasOwnPointAspect()) {
       aDrawer->SetPointAspect(new Prs3d_PointAspect(Aspect_TOM_BALL, Quantity_NOC_BLACK, 2.0));