Salome HOME
[EDF] GEOM : all objects of the Object Browser list hidden when hide one
[modules/gui.git] / src / OCCViewer / OCCViewer_ViewModel.cxx
index 1b680e5efe7d662849f5728fef252223298cbabe..2c3f55631211992d4102bd4a9afbf41a5821b16f 100644 (file)
@@ -1165,6 +1165,12 @@ bool OCCViewer_Viewer::unHighlightAll( bool updateviewer, bool unselect )
       myAISContext->UnhilightSelected( updateviewer );
     }
 #if OCC_VERSION_LARGE <= 0x07030000
+  } else {
+   if ( unselect ) {
+      myAISContext->ClearCurrents( updateviewer );
+    } else {
+      myAISContext->UnhilightCurrents( updateviewer );
+    }
   }
 #endif
   return false;