X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROCurveCreator%2FCurveCreator_Profile.cxx;h=4164ca68390eb48d4db918ff3a67050ff2b3d3f6;hb=bcd5b076bcdd86fe7af94a6dd9d901633781116d;hp=28cccbe9418ad7daa39ef004b29a149ae7a10a29;hpb=f69c6f07782392fb5e8c95aa917b1bfaa8f4b012;p=modules%2Fhydro.git diff --git a/src/HYDROCurveCreator/CurveCreator_Profile.cxx b/src/HYDROCurveCreator/CurveCreator_Profile.cxx index 28cccbe9..4164ca68 100644 --- a/src/HYDROCurveCreator/CurveCreator_Profile.cxx +++ b/src/HYDROCurveCreator/CurveCreator_Profile.cxx @@ -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 );