From: eap Date: Tue, 7 Mar 2006 10:50:04 +0000 (+0000) Subject: bug 11812. Fix Init() X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3499bb308082efe6eb40d065a2d72eef04e40f27;p=modules%2Fsmesh.git bug 11812. Fix Init() --- diff --git a/src/SMESH/SMESH_HypoFilter.cxx b/src/SMESH/SMESH_HypoFilter.cxx index 3482b1d57..2e4469fb4 100644 --- a/src/SMESH/SMESH_HypoFilter.cxx +++ b/src/SMESH/SMESH_HypoFilter.cxx @@ -309,6 +309,7 @@ SMESH_HypoFilter & SMESH_HypoFilter::Init ( SMESH_HypoPredicate* aPredicate, bo list::const_iterator pred = myPredicates.begin(); for ( ; pred != myPredicates.end(); ++pred ) delete *pred; + myPredicates.clear(); add( notNagate ? AND : AND_NOT, aPredicate ); return *this;