From: eap Date: Mon, 22 Jul 2013 14:36:12 +0000 (+0000) Subject: SALOME Forum bug: sub-mesh removal leads to an Exception in a re-opened study. X-Git-Tag: V7_3_0a1~265 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=26d878fd9f877561242fe62286bef37d86e1e573;p=modules%2Fsmesh.git SALOME Forum bug: sub-mesh removal leads to an Exception in a re-opened study. in SetCriteria(): + aResPredicate->UnRegister(); --- diff --git a/src/SMESH_I/SMESH_Filter_i.cxx b/src/SMESH_I/SMESH_Filter_i.cxx index b7b0e53e1..b973c9c68 100644 --- a/src/SMESH_I/SMESH_Filter_i.cxx +++ b/src/SMESH_I/SMESH_Filter_i.cxx @@ -3424,6 +3424,8 @@ CORBA::Boolean Filter_i::SetCriteria( const SMESH::Filter::Criteria& theCriteria SetPredicate( aResPredicate ); + aResPredicate->UnRegister(); + return !aResPredicate->_is_nil(); }