From 42f7bb16c5ee961cf2531b5bb35f9cbd45c05ae6 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 8 Sep 2014 19:27:22 +0400 Subject: [PATCH] Fixed bug with loading of a document with parts. --- 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 76407ea44..fec644039 100644 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -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()); } -- 2.39.2