From 26d878fd9f877561242fe62286bef37d86e1e573 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 22 Jul 2013 14:36:12 +0000 Subject: [PATCH] SALOME Forum bug: sub-mesh removal leads to an Exception in a re-opened study. in SetCriteria(): + aResPredicate->UnRegister(); --- src/SMESH_I/SMESH_Filter_i.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(); } -- 2.39.2