]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix problem with displaying/erasing trihedron in opened local context (local selectio...
authorvsr <vsr@opencascade.com>
Tue, 25 Aug 2015 15:39:44 +0000 (18:39 +0300)
committervsr <vsr@opencascade.com>
Tue, 25 Aug 2015 15:39:44 +0000 (18:39 +0300)
src/OCCViewer/OCCViewer_ViewModel.cxx

index afa24d3751b1bfbb5dca460b583338cc8a200e4e..203d93bde1694db937e882955dc87c3330076176 100755 (executable)
@@ -1238,8 +1238,13 @@ void OCCViewer_Viewer::setTrihedronShown( const bool on )
     return;
 
   if ( on ) {
-    myAISContext->Display( myTrihedron );
-    myAISContext->Deactivate(myTrihedron);
+    myAISContext->Display( myTrihedron,
+                           0 /*wireframe*/,
+                           0 /* selection mode */,
+                           Standard_True /* update viewer*/,
+                           Standard_True /* allow decomposition */,
+                           AIS_DS_Displayed /* display status */);
+    myAISContext->Deactivate( myTrihedron );
   }
   else {
     myAISContext->Erase( myTrihedron );