From: vsr Date: Wed, 26 Aug 2015 12:37:46 +0000 (+0300) Subject: Fix problem that trihedron is highlighting when local context is open X-Git-Tag: V7_7_0a1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1c01627cddacfc03f4f2e878269607b02d141268;p=modules%2Fgui.git Fix problem that trihedron is highlighting when local context is open --- diff --git a/src/OCCViewer/OCCViewer_ViewModel.cxx b/src/OCCViewer/OCCViewer_ViewModel.cxx index 203d93bde..1b2f96cbe 100755 --- a/src/OCCViewer/OCCViewer_ViewModel.cxx +++ b/src/OCCViewer/OCCViewer_ViewModel.cxx @@ -1240,9 +1240,9 @@ void OCCViewer_Viewer::setTrihedronShown( const bool on ) if ( on ) { myAISContext->Display( myTrihedron, 0 /*wireframe*/, - 0 /* selection mode */, + -1 /* selection mode */, Standard_True /* update viewer*/, - Standard_True /* allow decomposition */, + Standard_False /* allow decomposition */, AIS_DS_Displayed /* display status */); myAISContext->Deactivate( myTrihedron ); } diff --git a/src/SOCC/SOCC_ViewModel.cxx b/src/SOCC/SOCC_ViewModel.cxx index bebe7068c..32ad890c9 100755 --- a/src/SOCC/SOCC_ViewModel.cxx +++ b/src/SOCC/SOCC_ViewModel.cxx @@ -564,7 +564,7 @@ void SOCC_Viewer::LocalSelection( const SALOME_OCCPrs* thePrs, const std::listIsNull(); if ( !ic->HasOpenedContext() ) { ic->ClearCurrents( false ); - ic->OpenLocalContext( allObjects, true, true ); + ic->OpenLocalContext( Standard_False, Standard_True, Standard_True ); } AIS_ListOfInteractive anObjs;