X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDROData%2FHYDROData_ProfileUZ.cxx;h=bfe75e3b55092840f3f6701cdf2f9e74bb27cc5b;hb=a95289fabbb6fbf6f32c06207422c65aafd5bd65;hp=49fa3899596e151e8b3e7ec993ebc9765598062f;hpb=5af3b9f9b6d4827b1ba04b7618539bbcd2a704c8;p=modules%2Fhydro.git diff --git a/src/HYDROData/HYDROData_ProfileUZ.cxx b/src/HYDROData/HYDROData_ProfileUZ.cxx old mode 100755 new mode 100644 index 49fa3899..bfe75e3b --- 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; }