]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fixed bug with loading of a document with parts.
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 8 Sep 2014 15:27:22 +0000 (19:27 +0400)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 8 Sep 2014 15:27:22 +0000 (19:27 +0400)
src/XGUI/XGUI_Workshop.cpp

index 76407ea44eb8e0e7063cf0a27f4fcf4293b56d9d..fec644039bdd94d6cdf17f3becf425bfc5402230 100644 (file)
@@ -1115,6 +1115,8 @@ void XGUI_Workshop::displayAllResults()
 //**************************************************************
 void XGUI_Workshop::displayDocumentResults(DocumentPtr theDoc)
 {
+  if (!theDoc)
+    return;
   displayGroupResults(theDoc, ModelAPI_ResultConstruction::group());
   displayGroupResults(theDoc, ModelAPI_ResultBody::group());
 }