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:
eap 2013-07-22 14:37:06 +00:00
parent 26d878fd9f
commit eb3c0cb3a3

View File

@ -4675,8 +4675,10 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
if ( SMESH_GroupOnFilter_i* aFilterGroup =
dynamic_cast< SMESH_GroupOnFilter_i*>( aGroupImpl ))
{
aFilterGroup->SetFilter( filter );
filter->UnRegister();
}
SMESHDS_GroupBase* aGroupBaseDS = aGroupImpl->GetGroupDS();
if ( !aGroupBaseDS )
continue;