From bcd5b076bcdd86fe7af94a6dd9d901633781116d Mon Sep 17 00:00:00 2001 From: nds Date: Fri, 6 Dec 2013 12:48:57 +0000 Subject: [PATCH] Bug #202 - Fatal error during polyline creation --- src/HYDROCurveCreator/CurveCreator_Profile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.30.2