From: jfa Date: Fri, 1 Jul 2005 08:02:02 +0000 (+0000) Subject: IPAL9384 3.c.: useless reference objects are created after execution of GEOM_tube_geo... X-Git-Tag: V3_0_1~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e8d58ca1fb4be18d5c15feda227a92fb00bddbf7;p=modules%2Fgeom.git IPAL9384 3.c.: useless reference objects are created after execution of GEOM_tube_geom_gg2.py script --- diff --git a/src/GEOMGUI/GeometryGUI_Swig.cxx b/src/GEOMGUI/GeometryGUI_Swig.cxx index fb2b0e1e0..eac491144 100644 --- a/src/GEOMGUI/GeometryGUI_Swig.cxx +++ b/src/GEOMGUI/GeometryGUI_Swig.cxx @@ -135,8 +135,6 @@ void GEOM_Swig::createAndDisplayGO(const char* Entry) _PTR(SComponent) father = aStudy->FindComponent("GEOM"); aStudyBuilder->DefineComponentInstance( father, SalomeApp_Application::orb()->object_to_string(Geom) ); father->ComponentIOR(aFatherIOR); - - _PTR(SObject) fatherSF; _PTR(SObject) obj = aStudy->FindObjectID(Entry); _PTR(GenericAttribute) anAttr; @@ -155,13 +153,13 @@ void GEOM_Swig::createAndDisplayGO(const char* Entry) _PTR(AttributeName) aName ( anAttr ); string aNameValue = aName->Value(); // open transaction - SUIT_Operation* op = new SalomeApp_ImportOperation( app ); + /*jfa for bug IPAL9384 3)c):SUIT_Operation* op = new SalomeApp_ImportOperation( app ); op->start(); _PTR(SObject) newObj1 = aStudyBuilder->NewObject(father); aStudyBuilder->Addreference(newObj1, obj); // commit transaction - op->commit(); + op->commit();*/ Handle(GEOM_InteractiveObject) anIO = new GEOM_InteractiveObject(const_cast(anIORValue.c_str()), const_cast(aFatherIOR.c_str()),