From 000780b7612597fa66083afa5ea5cd9c726a26c1 Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Fri, 30 Jun 2017 23:53:04 +0200 Subject: [PATCH] debug abort on display bathymetry on VTK viewer --- src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx index 6833acec..3ef0794e 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx @@ -95,8 +95,8 @@ void HYDROGUI_VTKPrsBathymetry::compute() { aZ = Z_MAX; // If Z value is invalid then use Z_MAX } - aPoints->InsertPoint( i - 1, anAltPnt.X, anAltPnt.Y, aZ ); - aVertex->GetPointIds()->SetId( 0, i - 1 ); + aPoints->InsertPoint( i, anAltPnt.X, anAltPnt.Y, aZ ); + aVertex->GetPointIds()->SetId( 0, i ); aVertexGrid->InsertNextCell( aVertex->GetCellType(), aVertex->GetPointIds()); aZValues->InsertNextValue( aZ ); } -- 2.39.2