From: ana Date: Fri, 28 Jan 2011 08:38:53 +0000 (+0000) Subject: Fix for the bug 0021141: EDF 1758 SMESH: Salome doesn't stop when assigning a composi... X-Git-Tag: StartingPortingMED3~101 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4be7efd6bd36252d4c51090992d3517bd3dc4f26;p=modules%2Fsmesh.git Fix for the bug 0021141: EDF 1758 SMESH: Salome doesn't stop when assigning a composite side discretization hypothesis --- diff --git a/src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx b/src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx index 17161d9ef..df3fed095 100644 --- a/src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx +++ b/src/StdMeshers/StdMeshers_CompositeSegment_1D.cxx @@ -323,6 +323,8 @@ StdMeshers_CompositeSegment_1D::GetFaceSide(SMESH_Mesh& aMesh, string(theAlgo->GetName()) != algo->GetName() || hypList != algo->GetUsedHypothesis(aMesh, eNext, false)) break; + if ( std::find( edges.begin(), edges.end(), eNext ) != edges.end() ) + break; if ( forward ) edges.push_back( eNext ); else