mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
PAL7962
This commit is contained in:
parent
cf82182061
commit
3c6d43b5e5
@ -262,6 +262,12 @@ int SMESH_Mesh_i::importMEDFile( const char* theFileName, const char* theMeshNam
|
|||||||
list<int> aGroupIds = _impl->GetGroupIds();
|
list<int> aGroupIds = _impl->GetGroupIds();
|
||||||
for ( list<int>::iterator it = aGroupIds.begin(); it != aGroupIds.end(); it++ ) {
|
for ( list<int>::iterator it = aGroupIds.begin(); it != aGroupIds.end(); it++ ) {
|
||||||
SMESH_Group_i* aGroupImpl = new SMESH_Group_i( SMESH_Gen_i::GetPOA(), this, *it );
|
SMESH_Group_i* aGroupImpl = new SMESH_Group_i( SMESH_Gen_i::GetPOA(), this, *it );
|
||||||
|
|
||||||
|
// PAL7962: san -- To ensure correct mapping of servant and correct reference counting in GenericObj_i
|
||||||
|
SMESH_Gen_i::GetPOA()->activate_object( aGroupImpl );
|
||||||
|
aGroupImpl->Register();
|
||||||
|
// PAL7962: san -- To ensure correct mapping of servant and correct reference counting in GenericObj_i
|
||||||
|
|
||||||
SMESH::SMESH_Group_var aGroup = SMESH::SMESH_Group::_narrow( aGroupImpl->_this() );
|
SMESH::SMESH_Group_var aGroup = SMESH::SMESH_Group::_narrow( aGroupImpl->_this() );
|
||||||
_mapGroups[*it] = SMESH::SMESH_Group::_duplicate( aGroup );
|
_mapGroups[*it] = SMESH::SMESH_Group::_duplicate( aGroup );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user