From: nds Date: Fri, 6 Dec 2013 12:48:57 +0000 (+0000) Subject: Bug #202 - Fatal error during polyline creation X-Git-Tag: BR_hydro_v_0_5~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=bcd5b076bcdd86fe7af94a6dd9d901633781116d;hp=f69c6f07782392fb5e8c95aa917b1bfaa8f4b012;p=modules%2Fhydro.git Bug #202 - Fatal error during polyline creation --- 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 );