From: vsv Date: Fri, 22 Nov 2019 08:02:25 +0000 (+0300) Subject: Fix for module activation when in a list of features there are folders X-Git-Tag: V9_5_0a1~168 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8d3785b12b48a0bfc56eb25e6ae41fdb3cdcfc3f;p=modules%2Fshaper.git Fix for module activation when in a list of features there are folders --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index f97e58aa6..97e6089ca 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -2804,6 +2804,8 @@ void XGUI_Workshop::synchronizeGroupInViewer(const DocumentPtr& theDoc, int aSize = theDoc->numInternalFeatures(); for (int i = 0; i < aSize; i++) { aFeature = theDoc->internalFeature(i); + if (!aFeature.get()) + continue; const std::list& aResults = aFeature->results(); std::list::const_iterator aIt; aFeature->setDisplayed(false);