X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Mesh.cxx;fp=src%2FSMESH%2FSMESH_Mesh.cxx;h=8d0d9392b73c54719ecd75664413afb09946e74f;hp=c819ce0977fd9f9dbd2d84577bd5bc146479e314;hb=dad744364c27f488c40d4357699ac6cd9d779330;hpb=bdf698e60b1ae6c7b91f28f9fb0817f417e03ae3 diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index c819ce097..8d0d9392b 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -705,7 +705,7 @@ SMESH_Mesh::AddHypothesis(const TopoDS_Shape & aSubShape, while ( smIt->more() ) { SMESH_subMesh* sm = smIt->next(); if ( sm->IsApplicableHypothesis( anHyp )) { - ret2 = sm->CheckConcurrentHypothesis( anHyp->GetType() ); + ret2 = sm->CheckConcurrentHypothesis( anHyp ); if (ret2 > ret) { ret = ret2; break; @@ -753,7 +753,7 @@ SMESH_Mesh::RemoveHypothesis(const TopoDS_Shape & aSubShape, // there may appear concurrent hyps that were covered by the removed hyp if (ret < SMESH_Hypothesis::HYP_CONCURRENT && subMesh->IsApplicableHypothesis( anHyp ) && - subMesh->CheckConcurrentHypothesis( anHyp->GetType() ) != SMESH_Hypothesis::HYP_OK) + subMesh->CheckConcurrentHypothesis( anHyp ) != SMESH_Hypothesis::HYP_OK) ret = SMESH_Hypothesis::HYP_CONCURRENT; // sub-shapes @@ -774,7 +774,7 @@ SMESH_Mesh::RemoveHypothesis(const TopoDS_Shape & aSubShape, while ( smIt->more() ) { SMESH_subMesh* sm = smIt->next(); if ( sm->IsApplicableHypothesis( anHyp )) { - ret2 = sm->CheckConcurrentHypothesis( anHyp->GetType() ); + ret2 = sm->CheckConcurrentHypothesis( anHyp ); if (ret2 > ret) { ret = ret2; break;