mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-29 23:10:32 +05:00
SALOME Forum bug: sub-mesh removal leads to an Exception in a re-opened study.
Fix loading a group on filter: + filter->UnRegister();
This commit is contained in:
parent
26d878fd9f
commit
eb3c0cb3a3
@ -4675,8 +4675,10 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
|
|
||||||
if ( SMESH_GroupOnFilter_i* aFilterGroup =
|
if ( SMESH_GroupOnFilter_i* aFilterGroup =
|
||||||
dynamic_cast< SMESH_GroupOnFilter_i*>( aGroupImpl ))
|
dynamic_cast< SMESH_GroupOnFilter_i*>( aGroupImpl ))
|
||||||
|
{
|
||||||
aFilterGroup->SetFilter( filter );
|
aFilterGroup->SetFilter( filter );
|
||||||
|
filter->UnRegister();
|
||||||
|
}
|
||||||
SMESHDS_GroupBase* aGroupBaseDS = aGroupImpl->GetGroupDS();
|
SMESHDS_GroupBase* aGroupBaseDS = aGroupImpl->GetGroupDS();
|
||||||
if ( !aGroupBaseDS )
|
if ( !aGroupBaseDS )
|
||||||
continue;
|
continue;
|
||||||
@ -5015,8 +5017,8 @@ char* SMESH_Gen_i::getVersion()
|
|||||||
// Is used in the drag-n-drop functionality.
|
// Is used in the drag-n-drop functionality.
|
||||||
//=================================================================================
|
//=================================================================================
|
||||||
void SMESH_Gen_i::Move( const SMESH::sobject_list& what,
|
void SMESH_Gen_i::Move( const SMESH::sobject_list& what,
|
||||||
SALOMEDS::SObject_ptr where,
|
SALOMEDS::SObject_ptr where,
|
||||||
CORBA::Long row )
|
CORBA::Long row )
|
||||||
{
|
{
|
||||||
if ( CORBA::is_nil( where ) ) return;
|
if ( CORBA::is_nil( where ) ) return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user