Salome HOME
Access to 'Invalid value' of altitude from Bathymetry is added.
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_Displayer.cxx
index 7a254ac8b191a4460bd0881d5ea345486a774703..e53d6bc7a3cc6f1275c9311b41b4389ce4232c40 100644 (file)
@@ -98,7 +98,7 @@ void HYDROGUI_Displayer::DisplayAll( const int theViewerId,
                                      const bool theIsForced )
 {
   HYDROData_SequenceOfObjects aSeq;
-  HYDROGUI_Tool::GetPrsSubObjects( myModule, theViewerId, aSeq );
+  HYDROGUI_Tool::GetPrsSubObjects( myModule, aSeq );
   Update( aSeq, theViewerId, theIsForced );
 }
 
@@ -189,7 +189,7 @@ void HYDROGUI_Displayer::Display( const HYDROData_SequenceOfObjects& theObjs,
 
     if( aPrs )
     {
-      bool anIsVisible = anObj->GetVisibility();
+      bool anIsVisible = anObj->IsVisible( (size_t)aViewer );
       aPrs->setVisible( anIsVisible );
     }
   }