From: vsv Date: Tue, 8 Oct 2019 08:55:56 +0000 (+0300) Subject: Update viewer on delete an item X-Git-Tag: V9_5_0a1~167^2~98 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=09365c927ebe8d881de2eda7f96bc33a2d9511c8;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();