From: rkv Date: Thu, 28 Nov 2013 11:05:28 +0000 (+0000) Subject: Fix for the bug #130: bathymetry sign is wrong. X-Git-Tag: issue_132_11_28~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e71042190650a6eef6a72a03725db5cfa8b917a2;p=modules%2Fhydro.git Fix for the bug #130: bathymetry sign is wrong. --- 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 );