From c4201ecae469480e81c8cbe439fb33c220cb2154 Mon Sep 17 00:00:00 2001 From: adv Date: Sat, 28 Dec 2013 07:24:44 +0000 Subject: [PATCH] Bathymetry prs corrected according to new API. --- src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx index 13c19b97..b02bd0e2 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx @@ -91,7 +91,7 @@ void HYDROGUI_VTKPrsBathymetry::compute() double aZ; int anInvalidZ = InvalidZValue(); - for (int i = 0; i < aNbPoints; i++ ) + for (int i = 1; i <= aNbPoints; i++ ) { anAltPnt = anAltPoints.Value( i ); aZ = anAltPnt.Z(); -- 2.39.2