From: rnv Date: Wed, 17 Mar 2021 14:42:42 +0000 (+0300) Subject: #20430 [CEA 20428] FIELDS : improvement of simplified visualisations: using SALOME... X-Git-Tag: V9_7_0a1~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bb7f6ee709da69c3e9ac4985fc5e2e583a83997e;p=modules%2Fgui.git #20430 [CEA 20428] FIELDS : improvement of simplified visualisations: using SALOME displayer in the non-SALOME viewers (PV viewer for example) --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 249ce2fd1..307f34ce7 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -5278,7 +5278,7 @@ void LightApp_Application::updateVisibilityState( DataObjectList& theList, if ( aDisplayer ) { Qtx::VisibilityState anObjState = Qtx::UnpresentableState; if ( aDisplayer->canBeDisplayed( obj->entry(), theViewModel->getType() ) ) { - if ( aView && aDisplayer->IsDisplayed( obj->entry(), aView ) ) + if ( aDisplayer->IsDisplayed( obj->entry(), aView ) ) anObjState = Qtx::ShownState; else anObjState = Qtx::HiddenState;