Salome HOME
53935: "Add" item of sub-mesh pop-up does not work and is not documented
[modules/smesh.git] / src / SMESH / SMESH_subMesh.cxx
index b297cf60945552487f4f9a0c72e7e98ebff68bc3..b1f562e24214c2c522ced80a1f9c96768714f586 100644 (file)
@@ -646,7 +646,7 @@ SMESH_Hypothesis::Hypothesis_Status
       filter.Or( SMESH_HypoFilter::HasType( algo->GetType()+1 ));
       filter.Or( SMESH_HypoFilter::HasType( algo->GetType()+2 ));
       if ( SMESH_Algo * curAlgo = (SMESH_Algo*)_father->GetHypothesis( this, filter, true ))
-        if ( !curAlgo->NeedDiscreteBoundary() )
+        if ( !curAlgo->NeedDiscreteBoundary() && curAlgo != anHyp )
           algoRequiringCleaning = curAlgo;
     }
   }