]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1598 strange planes in GEOM after Export to GEOM
authornds <nds@opencascade.com>
Fri, 24 Jun 2016 14:42:34 +0000 (17:42 +0300)
committernds <nds@opencascade.com>
Fri, 24 Jun 2016 14:43:02 +0000 (17:43 +0300)
src/XGUI/XGUI_Displayer.cpp

index af9100af9e826e8f5b1d6b2a9d5f4cd3054951f2..b9105ef9232aff3608d4334a8fa67972a1740af4 100644 (file)
@@ -907,7 +907,7 @@ void XGUI_Displayer::activateAIS(const Handle(AIS_InteractiveObject)& theIO,
                                  const int theMode, const bool theUpdateViewer) const
 {
   Handle(AIS_InteractiveContext) aContext = myWorkshop->viewer()->AISContext();
-  if (theIO == getTrihedron()) {
+  if (!theIO.IsNull() && theIO == getTrihedron()) {
     if (theMode != AIS_Shape::SelectionType(TopAbs_EDGE) &&
         theMode != AIS_Shape::SelectionType(TopAbs_VERTEX))
       return;