]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for module activation when in a list of features there are folders
authorvsv <vsv@opencascade.com>
Fri, 22 Nov 2019 08:02:25 +0000 (11:02 +0300)
committervsv <vsv@opencascade.com>
Fri, 22 Nov 2019 08:02:25 +0000 (11:02 +0300)
src/XGUI/XGUI_Workshop.cpp

index f97e58aa6254e88dbb5d7538b812a2ee41cc5775..97e6089ca25e7e337154216e24bf91b7b568c636 100644 (file)
@@ -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<ResultPtr>& aResults = aFeature->results();
     std::list<ResultPtr>::const_iterator aIt;
     aFeature->setDisplayed(false);