From: vsv Date: Mon, 8 Sep 2014 15:27:22 +0000 (+0400) Subject: Fixed bug with loading of a document with parts. X-Git-Tag: V_0.4.4~78^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=42f7bb16c5ee961cf2531b5bb35f9cbd45c05ae6;p=modules%2Fshaper.git Fixed bug with loading of a document with parts. --- 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()); }