PAL21685: Fatal error after save/open study with Edit group as standalone group

* register new CORBA object for persistence at group conversion
This commit is contained in:
eap 2010-04-27 06:35:56 +00:00
parent eae9e2af47
commit 2a69c947b9

View File

@ -1861,7 +1861,6 @@ void SMESH_Mesh_i::CheckGeomGroupModif()
//=============================================================================
/*!
* \brief Create standalone group instead if group on geometry
*
*/
//=============================================================================
@ -1918,8 +1917,8 @@ SMESH::SMESH_Group_ptr SMESH_Mesh_i::ConvertToStandalone( SMESH::SMESH_GroupOnGe
_mapGroups[anId] = SMESH::SMESH_GroupBase::_duplicate( aGroup );
// register CORBA object for persistence
//int nextId = _gen_i->RegisterObject( aGroup );
//if(MYDEBUG) MESSAGE( "Add group to map with id = "<< nextId);
/*int nextId =*/ _gen_i->RegisterObject( aGroup );
builder->SetIOR( aGroupSO, _gen_i->GetORB()->object_to_string( aGroup ) );
return aGroup._retn();