]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix pb with broken presentations in VTK viewer occ/19960
authorjfa <jfa@opencascade.com>
Wed, 3 Feb 2021 12:33:11 +0000 (15:33 +0300)
committerjfa <jfa@opencascade.com>
Wed, 3 Feb 2021 12:33:11 +0000 (15:33 +0300)
src/LightApp/LightApp_Application.cxx

index f28b5b14f9016706d35b617461499a3bda6b04db..084cfad81c1a98d5e014d93aa3774c329d51ddab 100644 (file)
@@ -5247,8 +5247,9 @@ void LightApp_Application::updatePresentations( const QString& theComponent,
             if ( aVM ) {
               SALOME_View* aView = dynamic_cast<SALOME_View*>(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 );
                 }
               }