]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0021672: [CEA 565] Dump Study from script
authoreap <eap@opencascade.com>
Wed, 20 Jun 2012 09:50:12 +0000 (09:50 +0000)
committereap <eap@opencascade.com>
Wed, 20 Jun 2012 09:50:12 +0000 (09:50 +0000)
   GetSubShapeIndices() from the last function

src/GEOM_I/GEOM_Object_i.cc

index ca0775fd0d2c23e83b89a3b784647317f1692277..bc8afb0f962b48dd2ef1050ff702295eea3f1e23 100644 (file)
@@ -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();