]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Update viewer on delete an item
authorvsv <vsv@opencascade.com>
Tue, 8 Oct 2019 08:55:56 +0000 (11:55 +0300)
committervsv <vsv@opencascade.com>
Tue, 8 Oct 2019 08:55:56 +0000 (11:55 +0300)
src/XGUI/XGUI_FacesPanel.cpp

index bc35ff26760f9c87b95e4186e4e0edc94c1cc3e1..d92ae5669053b9799e40617da2307bf3e1d137fb 100644 (file)
@@ -26,6 +26,7 @@
 #include <ModuleBase_IModule.h>
 #include <ModuleBase_ISelection.h>
 #include <ModuleBase_IWorkshop.h>
+#include <ModuleBase_IViewer.h>
 #include <ModuleBase_ListView.h>
 #include <ModuleBase_ResultPrs.h>
 #include <ModuleBase_Tools.h>
@@ -294,10 +295,13 @@ bool XGUI_FacesPanel::processDelete()
     bool isRedisplayed = redisplayObjects(aRestoredObjects);
     isRedisplayed = displayHiddenObjects(aRestoredObjects, myHiddenObjects)
                     || isRedisplayed;
-    if (isRedisplayed)
+    if (isRedisplayed) {
       flushRedisplay();
+      myWorkshop->viewer()->update();
+    }
     // should be after flush of redisplay to have items object to be updated
     updateProcessedObjects(myItems, myItemObjects);
+
   }
 
   myListView->removeSelectedItems();