From: dmv Date: Tue, 4 May 2010 12:37:53 +0000 (+0000) Subject: IPAL21676 crash during Node MakeCompound execution X-Git-Tag: V5_1_4rc1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b88356daeb6f9af1785c09b73fb29e9e1ba489ac;p=modules%2Fgeom.git IPAL21676 crash during Node MakeCompound execution --- diff --git a/src/GEOM_I_Superv/GEOM_Superv_i.cc b/src/GEOM_I_Superv/GEOM_Superv_i.cc index 95c581f7f..aa842150a 100644 --- a/src/GEOM_I_Superv/GEOM_Superv_i.cc +++ b/src/GEOM_I_Superv/GEOM_Superv_i.cc @@ -168,12 +168,13 @@ GEOM::GEOM_List_ptr GEOM_Superv_i::CreateListOfGO() // AddItemToListOfGO: //============================================================================= void GEOM_Superv_i::AddItemToListOfGO(GEOM::GEOM_List_ptr& theList, - GEOM::GEOM_Object_ptr theObject) + GEOM::GEOM_Object_ptr theObject) { MESSAGE("GEOM_Superv_i::AddItemToListOfGO(...)"); + GEOM::GEOM_Object_var anObj = GEOM::GEOM_Object::_duplicate(theObject); if (GEOM_List_i* aList = dynamic_cast*>(GetServant(theList, myPOA).in())) { - aList->AddObject(theObject); + aList->AddObject(anObj); MESSAGE(" NewLength = "<GetList().length()); } }