]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Bathymetry prs corrected according to new API.
authoradv <adv@opencascade.com>
Sat, 28 Dec 2013 07:24:44 +0000 (07:24 +0000)
committeradv <adv@opencascade.com>
Sat, 28 Dec 2013 07:24:44 +0000 (07:24 +0000)
src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx

index 13c19b979a1031f1e990c3a9159cb5dc0291f6c6..b02bd0e2fc9f604be416e24d73d82a6857036977 100644 (file)
@@ -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();