Salome HOME
porting on linux
[modules/hydro.git] / src / HYDROData / HYDROData_ProfileUZ.cxx
index 49fa3899596e151e8b3e7ec993ebc9765598062f..bfe75e3b55092840f3f6701cdf2f9e74bb27cc5b 100644 (file)
@@ -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;
   }