From d4386f5cf3646aec566f35931bd9acc892c93de2 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Mon, 21 Sep 2015 11:51:39 +0200 Subject: [PATCH] workaround to improve: allow to read enbankement altitude given by a flat line --- src/HYDROData/HYDROData_ProfileUZ.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HYDROData/HYDROData_ProfileUZ.cxx b/src/HYDROData/HYDROData_ProfileUZ.cxx index 49fa3899..bfe75e3b 100755 --- a/src/HYDROData/HYDROData_ProfileUZ.cxx +++ b/src/HYDROData/HYDROData_ProfileUZ.cxx @@ -82,6 +82,7 @@ double HYDROData_ProfileUZ::GetDepthFromDistance( const PointsList& thePoints, aResDepth = ( aPrevPoint.Y() + aRatio * aCurPoint.Y() ) / ( 1 + aRatio ); break; } + else aResDepth = aCurPoint.Y(); // TODO: workaround for normalized flat altitudes aPrevPoint = aCurPoint; } -- 2.39.2