From e4dc4e6ede48a1bcd7c4fd63413782b5273c139c Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 30 Sep 2019 15:52:54 +0300 Subject: [PATCH] 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. --- src/XGUI/XGUI_WorkshopListener.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(); } } -- 2.39.2