From: skl Date: Thu, 20 Jul 2006 07:05:38 +0000 (+0000) Subject: Corrections for bug IPAL12999. X-Git-Tag: V3_2_1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c759def28363750e5a411a4fbc3165111c5b2f13;p=modules%2Fgeom.git Corrections for bug IPAL12999. --- 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);