Salome HOME
Prevent deletion of a group servant when a group on filter is edited w/o activating...
authoreap <eap@opencascade.com>
Fri, 27 Jun 2014 12:31:53 +0000 (16:31 +0400)
committereap <eap@opencascade.com>
Fri, 27 Jun 2014 12:31:53 +0000 (16:31 +0400)
src/SMESH_I/SMESH_Group_i.cxx

index ebdd105..d55846a 100644 (file)
@@ -774,6 +774,9 @@ SMESH_PredicatePtr SMESH_GroupOnFilter_i::GetPredicate( SMESH::Filter_ptr filter
 
 void SMESH_GroupOnFilter_i::SetFilter(SMESH::Filter_ptr theFilter)
 {
+  if ( myFilter->_is_equivalent( theFilter ))
+    return;
+
   if ( myPreMeshInfo )
     myPreMeshInfo->FullLoadFromFile();