From: eap Date: Wed, 20 Jun 2012 09:50:12 +0000 (+0000) Subject: 0021672: [CEA 565] Dump Study from script X-Git-Tag: V6_6_0a1~108 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0bbd959702455434a5f0eba575d1c2a8b4801b84;p=modules%2Fgeom.git 0021672: [CEA 565] Dump Study from script GetSubShapeIndices() from the last function --- diff --git a/src/GEOM_I/GEOM_Object_i.cc b/src/GEOM_I/GEOM_Object_i.cc index ca0775fd0..bc8afb0f9 100644 --- a/src/GEOM_I/GEOM_Object_i.cc +++ b/src/GEOM_I/GEOM_Object_i.cc @@ -453,7 +453,7 @@ GEOM::ListOfLong* GEOM_Object_i::GetSubShapeIndices() GEOM::ListOfLong_var anIndices = new GEOM::ListOfLong; if(!_impl->IsMainShape()) { - Handle(GEOM_Function) aFunction = _impl->GetFunction(1); //Get Sub-shape function (always the first (and last) one) + Handle(GEOM_Function) aFunction = _impl->GetLastFunction(); //Get Sub-shape function (always the first (and last) one) if(aFunction.IsNull()) return anIndices._retn(); GEOM_ISubShape ISS(aFunction); Handle(TColStd_HArray1OfInteger) anArray = ISS.GetIndices();