From: eap Date: Thu, 3 Oct 2013 15:43:48 +0000 (+0000) Subject: ILMAB project. Fix a bug in RestoreSubShapes() X-Git-Tag: BR_hydro_v_0_3_1~112 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e071b309e65ba7da838f8d80f5b0591ce415bc22;hp=6e3909e3d5df6df633e1bc2a665483c4f9d8166c;p=modules%2Fgeom.git ILMAB project. Fix a bug in RestoreSubShapes() --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 2f2fc0b37..86fca280e 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -1006,6 +1006,7 @@ GEOM::ListOfGO* GEOM_Gen_i::RestoreSubShapes(SALOMEDS::Study_ptr theStudy, GEOM::ListOfGBO_var boList = theObject->GetDependency(); aLength = boList->length(); aList = new GEOM::ListOfGO; + aList->length(aLength); for (int i = 0; i < aLength; i++) aList[i] = GEOM::GEOM_Object::_narrow( boList[i] ); nbArgsActual = aLength;