]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
23032: EDF SMESH: Projection 1D-2D fails with Netgen 1D-2D
authoreap <eap@opencascade.com>
Wed, 15 Apr 2015 16:06:17 +0000 (19:06 +0300)
committereap <eap@opencascade.com>
Wed, 15 Apr 2015 16:06:17 +0000 (19:06 +0300)
  SIGSEGV in optimize mode on Debian

src/SMESH/SMESH_Pattern.cxx

index 7aba007ab7b1d03a279b1548d0f6f996b1103ff2..4ede79e45238b761df7b76f937295b066d151374 100644 (file)
@@ -718,10 +718,10 @@ bool SMESH_Pattern::Load (SMESH_Mesh*        theMesh,
       {
         // new wire begins; put wire EDGEs in eVec
         list<TopoDS_Edge>::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;