]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
show/hide bathymetry in VTK viewer
authorasl <asl@opencascade.com>
Tue, 15 Nov 2016 13:21:52 +0000 (16:21 +0300)
committerasl <asl@opencascade.com>
Tue, 15 Nov 2016 13:22:10 +0000 (16:22 +0300)
src/HYDROGUI/HYDROGUI_Module.cxx
src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx

index cd5a630bade3cce8eeb1f689d8131f6715a04dae..38090fe5441884545f6a71db1a63a3e70a8c014c 100644 (file)
@@ -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
index 08f6ef08da0b5d0361a22bf73065a16c41944848..6833acec714a898feb6e226e969ab106b4f9303c 100644 (file)
@@ -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;