From: vsv Date: Mon, 30 Sep 2019 12:52:54 +0000 (+0300) Subject: Issue #3018: Do not call Update of a viewer on redisplay event because it can be... X-Git-Tag: V9_4_0a2~4^2~53 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e4dc4e6ede48a1bcd7c4fd63413782b5273c139c;p=modules%2Fshaper.git Issue #3018: Do not call Update of a viewer on redisplay event because it can be called recursively. Update of viewer has to be called directly where it is necessary. --- diff --git a/src/XGUI/XGUI_WorkshopListener.cpp b/src/XGUI/XGUI_WorkshopListener.cpp index 6de634520..e420a5aec 100644 --- a/src/XGUI/XGUI_WorkshopListener.cpp +++ b/src/XGUI/XGUI_WorkshopListener.cpp @@ -358,7 +358,9 @@ void XGUI_WorkshopListener:: if (aRedisplayed || isCustomized) { Events_Loop::loop()->flush(Events_Loop::eventByName(EVENT_EMPTY_AIS_PRESENTATION)); - aDisplayer->updateViewer(); + // Do not update viewer here because it can be called in a loop + // In this case Update has to be called after redisplay event + //aDisplayer->updateViewer(); } }