From: eap Date: Wed, 15 Apr 2015 16:06:17 +0000 (+0300) Subject: 23032: EDF SMESH: Projection 1D-2D fails with Netgen 1D-2D X-Git-Tag: V7_6_0rc1~40 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dcfc66bbfa976f8fa007dfdadd13a72b5e438cd4;p=modules%2Fsmesh.git 23032: EDF SMESH: Projection 1D-2D fails with Netgen 1D-2D SIGSEGV in optimize mode on Debian --- diff --git a/src/SMESH/SMESH_Pattern.cxx b/src/SMESH/SMESH_Pattern.cxx index 7aba007ab..4ede79e45 100644 --- a/src/SMESH/SMESH_Pattern.cxx +++ b/src/SMESH/SMESH_Pattern.cxx @@ -718,10 +718,10 @@ bool SMESH_Pattern::Load (SMESH_Mesh* theMesh, { // new wire begins; put wire EDGEs in eVec list::iterator eEnd = elIt; + if ( iE == *nbEinW ) + ++nbEinW; std::advance( eEnd, *nbEinW ); eVec.assign( elIt, eEnd ); - if ( iE > 0 ) - ++nbEinW; iE = 0; } TopoDS_Edge & edge = *elIt;