]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bug #202 - Fatal error during polyline creation
authornds <nds@opencascade.com>
Fri, 6 Dec 2013 12:48:57 +0000 (12:48 +0000)
committernds <nds@opencascade.com>
Fri, 6 Dec 2013 12:48:57 +0000 (12:48 +0000)
src/HYDROCurveCreator/CurveCreator_Profile.cxx

index 28cccbe9418ad7daa39ef004b29a149ae7a10a29..4164ca68390eb48d4db918ff3a67050ff2b3d3f6 100644 (file)
@@ -179,7 +179,7 @@ bool CurveCreator_Profile::addPointsInternal( const CurveCreator::SectionsMap &t
         if ( !aSection->myPoints.empty() )
           aC = *(aSection->myPoints.end() - 2);
 
-        if ( aSection->myPoints.empty() || aCoordU > aC )
+        if ( aSection->myPoints.empty() || aCoordU >= aC )
         {
           aSection->myPoints.push_back( aCoordU );
           aSection->myPoints.push_back( aCoordZ );