From: vsr Date: Tue, 25 Aug 2015 15:39:44 +0000 (+0300) Subject: Fix problem with displaying/erasing trihedron in opened local context (local selectio... X-Git-Tag: NewGEOM_1.4.0~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a805fbd6f6d13de8c047ee4976616b77ff1807f;p=modules%2Fgui.git Fix problem with displaying/erasing trihedron in opened local context (local selection enabled) --- diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index d7eae71b8..621a7d83a 100755 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -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 );