From: skl Date: Fri, 15 Jun 2007 05:44:11 +0000 (+0000) Subject: Corrected for bug NPAL16170. X-Git-Tag: V3_2_7~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c872df325d96dccc7e5b75c453f36556e47feede;p=modules%2Fsmesh.git Corrected for bug NPAL16170. --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 493abb908..8832c0896 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -2552,6 +2552,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent, } // close hypotheses root HDF group aTopGroup->CloseOnDisk(); + aTopGroup = 0; } // --> then we should read&create algorithms @@ -2651,6 +2652,7 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent, } // close algorithms root HDF group aTopGroup->CloseOnDisk(); + aTopGroup = 0; } // --> the rest groups should be meshes @@ -3292,7 +3294,8 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent, } } // close mesh group - aTopGroup->CloseOnDisk(); + if(aTopGroup) + aTopGroup->CloseOnDisk(); } // close HDF file aFile->CloseOnDisk();