From dcfc66bbfa976f8fa007dfdadd13a72b5e438cd4 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 15 Apr 2015 19:06:17 +0300 Subject: [PATCH] 23032: EDF SMESH: Projection 1D-2D fails with Netgen 1D-2D SIGSEGV in optimize mode on Debian --- src/SMESH/SMESH_Pattern.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.2