From: vsv Date: Tue, 8 Oct 2019 08:55:56 +0000 (+0300) Subject: Update viewer on delete an item X-Git-Tag: V9_4_0a2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f421ab3932a5e09ae8082215c3eaaa8cc4944e02;p=modules%2Fshaper.git Update viewer on delete an item --- diff --git a/src/XGUI/XGUI_FacesPanel.cpp b/src/XGUI/XGUI_FacesPanel.cpp index bc35ff267..d92ae5669 100644 --- a/src/XGUI/XGUI_FacesPanel.cpp +++ b/src/XGUI/XGUI_FacesPanel.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -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();