Salome HOME
Bug #202 - Fatal error during polyline creation
[modules/hydro.git] / 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 );