23032: EDF SMESH: Projection 1D-2D fails with Netgen 1D-2D

SIGSEGV in optimize mode on Debian
This commit is contained in:
eap 2015-04-15 19:06:17 +03:00
parent 950f20de28
commit dcfc66bbfa

View File

@ -718,10 +718,10 @@ bool SMESH_Pattern::Load (SMESH_Mesh* theMesh,
{ {
// new wire begins; put wire EDGEs in eVec // new wire begins; put wire EDGEs in eVec
list<TopoDS_Edge>::iterator eEnd = elIt; list<TopoDS_Edge>::iterator eEnd = elIt;
if ( iE == *nbEinW )
++nbEinW;
std::advance( eEnd, *nbEinW ); std::advance( eEnd, *nbEinW );
eVec.assign( elIt, eEnd ); eVec.assign( elIt, eEnd );
if ( iE > 0 )
++nbEinW;
iE = 0; iE = 0;
} }
TopoDS_Edge & edge = *elIt; TopoDS_Edge & edge = *elIt;