From e71042190650a6eef6a72a03725db5cfa8b917a2 Mon Sep 17 00:00:00 2001 From: rkv Date: Thu, 28 Nov 2013 11:05:28 +0000 Subject: [PATCH] Fix for the bug #130: bathymetry sign is wrong. --- src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx index f1337a17..ed6a9fb4 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx @@ -95,11 +95,7 @@ void HYDROGUI_VTKPrsBathymetry::compute() aZ = anAltPnt.Z(); if ( ValuesLessEquals( aZ, anInvalidZ ) ) { - aZ = Z_MAX; - } - else - { - aZ = -aZ; + aZ = Z_MAX; // If Z value is invalid then use Z_MAX } aPoints->InsertPoint( i, anAltPnt.X(), anAltPnt.Y(), aZ ); aVertex->GetPointIds()->SetId( 0, i ); -- 2.39.2