From: jfa Date: Wed, 3 Feb 2021 12:33:11 +0000 (+0300) Subject: Fix pb with broken presentations in VTK viewer X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e317d079e75ce9c68dc2c834d9b7a805c557cd87;p=modules%2Fgui.git Fix pb with broken presentations in VTK viewer --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index f28b5b14f..084cfad81 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -5247,8 +5247,9 @@ void LightApp_Application::updatePresentations( const QString& theComponent, if ( aVM ) { SALOME_View* aView = dynamic_cast(aVM); if ( aView ) { - if ( aDisplayer->IsDisplayed( anEntry, aView ) ) { - aDisplayer->Erase( anEntry, false, false, aView ); + bool isDisp = aDisplayer->IsDisplayed( anEntry, aView ); + aDisplayer->Erase( anEntry, true, false, aView ); + if ( isDisp ) { aDisplayer->Display( anEntry, false, aView ); } }