From: Paul RASCLE Date: Fri, 30 Jun 2017 21:53:04 +0000 (+0200) Subject: debug abort on display bathymetry on VTK viewer X-Git-Tag: Salome_8_3_Hydro_1_1rc1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=000780b7612597fa66083afa5ea5cd9c726a26c1;p=modules%2Fhydro.git debug abort on display bathymetry on VTK viewer --- 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 ); }