From 8d3785b12b48a0bfc56eb25e6ae41fdb3cdcfc3f Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 22 Nov 2019 11:02:25 +0300 Subject: [PATCH] Fix for module activation when in a list of features there are folders --- src/XGUI/XGUI_Workshop.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.30.2