From: asl Date: Tue, 15 Nov 2016 13:21:52 +0000 (+0300) Subject: show/hide bathymetry in VTK viewer X-Git-Tag: v1.6~38 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d5c604fa3a3fb29ffe704f6d21d861b1088cb9bf;p=modules%2Fhydro.git show/hide bathymetry in VTK viewer --- diff --git a/src/HYDROGUI/HYDROGUI_Module.cxx b/src/HYDROGUI/HYDROGUI_Module.cxx index cd5a630b..38090fe5 100644 --- a/src/HYDROGUI/HYDROGUI_Module.cxx +++ b/src/HYDROGUI/HYDROGUI_Module.cxx @@ -1821,7 +1821,7 @@ void HYDROGUI_Module::onObjectClicked( SUIT_DataObject* theObject, int theColumn setObjectVisible( HYDROGUI_Tool::GetActiveViewId( this ), hydroObject->modelObject(), vis ); - update( UF_OCCViewer | ( visState == Qtx::ShownState ? UF_FitAll : 0 ) ); + update( UF_OCCViewer | UF_VTKViewer | ( visState == Qtx::ShownState ? UF_FitAll : 0 ) ); } Handle(HYDROData_StricklerTable) HYDROGUI_Module::getLandCoverColoringTable( const int theViewId ) const diff --git a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx index 08f6ef08..6833acec 100644 --- a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx +++ b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx @@ -87,7 +87,7 @@ void HYDROGUI_VTKPrsBathymetry::compute() double aZ; int anInvalidZ = InvalidZValue(); - for (int i = 1; i <= aNbPoints; i++ ) + for (int i = 0; i < aNbPoints; i++ ) { anAltPnt = anAltPoints[i]; aZ = anAltPnt.Z;