From c759def28363750e5a411a4fbc3165111c5b2f13 Mon Sep 17 00:00:00 2001 From: skl Date: Thu, 20 Jul 2006 07:05:38 +0000 Subject: [PATCH] Corrections for bug IPAL12999. --- src/GEOM/GEOM_Object.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/GEOM/GEOM_Object.cxx b/src/GEOM/GEOM_Object.cxx index ecb9f84a3..e36ddc909 100644 --- a/src/GEOM/GEOM_Object.cxx +++ b/src/GEOM/GEOM_Object.cxx @@ -272,10 +272,7 @@ bool GEOM_Object::IsMainShape() Handle(GEOM_Function) GEOM_Object::AddFunction(const Standard_GUID& theGUID, int theFunctionType) { Standard_Integer nb = GetNbFunctions(); - - //if(nb == 1 && theGUID == GetSubShapeID()) return NULL; //It's impossible to add a function to sub shape - // change by skl (+srn) for IPAL12999 - if(nb == 1 && GetFunction(1)->GetDriverGUID() == GetSubShapeID()) return NULL; //It's impossible to add a function to sub shape + if(nb == 1 && theGUID == GetSubShapeID()) return NULL; //It's impossible to add a function to sub shape nb++; TDF_Label aChild = FUNCTION_LABEL(nb); -- 2.39.2