From 0bbd959702455434a5f0eba575d1c2a8b4801b84 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 20 Jun 2012 09:50:12 +0000 Subject: [PATCH] 0021672: [CEA 565] Dump Study from script GetSubShapeIndices() from the last function --- src/GEOM_I/GEOM_Object_i.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2