]> 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)
committerdbv <dbv@opencascade.com>
Thu, 10 Sep 2015 09:35:28 +0000 (12:35 +0300)
src/OCCViewer/OCCViewer_ViewModel.cxx

index d7eae71b8e218e1880be08f8efc94bb9277f26d6..621a7d83a19e59e882a43ce9aa5372b49c5b9ff4 100755 (executable)
@@ -956,8 +956,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 );