From: nds Date: Fri, 26 Feb 2016 18:53:32 +0000 (+0300) Subject: Issue #1322 correction in xml to use intersection point icon. X-Git-Tag: V_2.2.0~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=60efeb0baf521d2e6bca437517457d801b6f3486;p=modules%2Fshaper.git Issue #1322 correction in xml to use intersection point icon. --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index c754c7de3..ab326f3df 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -1973,8 +1973,14 @@ void XGUI_Workshop::synchronizeGroupInViewer(const DocumentPtr& theDoc, int aSize = theDoc->size(theGroup); for (int i = 0; i < aSize; i++) { aObj = theDoc->object(theGroup, i); - if (aObj->isDisplayed()) + if (aObj->isDisplayed()) { + // Hide the presentation with an empty shape. But isDisplayed state of the object should not + // be changed to the object becomes visible when the shape becomes not empty + ResultPtr aRes = std::dynamic_pointer_cast(aObj); + if (aRes.get() && (!aRes->shape().get() || aRes->shape()->isNull())) + continue; myDisplayer->display(aObj, false); + } } if (theUpdateViewer) myDisplayer->updateViewer();