Salome HOME
fix hypothesis removal
authoreap <eap@opencascade.com>
Tue, 18 Apr 2006 12:50:29 +0000 (12:50 +0000)
committereap <eap@opencascade.com>
Tue, 18 Apr 2006 12:50:29 +0000 (12:50 +0000)
src/SMESHGUI/SMESHGUI_MeshOp.cxx

index b1bba36bfef288b19c33dcb4a1a2d3dd2e0ac121..20c4e77de0e687e96d6299eeb125ded98ec34b36 100644 (file)
@@ -1620,7 +1620,7 @@ bool SMESHGUI_MeshOp::editMeshOrSubMesh( QString& theMess )
         if ( anOldHypIndex >= 0 ) {
           SMESH::RemoveHypothesisOrAlgorithmOnMesh(
             pObj, myExistingHyps[ dim ][ hypType ][ anOldHypIndex ] );
-          myExistingHyps.remove( anOldHypIndex );
+          myObjHyps[ dim ][ hypType ].clear();
         }
 
         // assign new hypotheses