From: Paul RASCLE Date: Mon, 21 Sep 2015 09:51:39 +0000 (+0200) Subject: workaround to improve: allow to read enbankement altitude given by a flat line X-Git-Tag: BR_quadtree_20150925 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d4386f5cf3646aec566f35931bd9acc892c93de2;p=modules%2Fhydro.git workaround to improve: allow to read enbankement altitude given by a flat line --- 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; }