From: jfa Date: Thu, 18 Mar 2010 13:48:26 +0000 (+0000) Subject: Mantis issue 0020768: Some Dump with RestoreSubShapes not loadable. Fix 1. X-Git-Tag: V5_1_4a1~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c251f8fc85401146de158adaefbf2d2a4a5d9777;p=modules%2Fgeom.git Mantis issue 0020768: Some Dump with RestoreSubShapes not loadable. Fix 1. --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 64c78fccb..cbc893579 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -792,7 +792,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreSubShapesO (SALOMEDS::Study_ptr theStudy, aParts = RestoreSubShapes(theStudy, theObject, aSO, theArgs, theFindMethod, theInheritFirstArg, theAddPrefix); - aSO->Destroy(); + if (!CORBA::is_nil(aSO)) aSO->Destroy(); return aParts._retn(); }