Salome HOME
Merge branch 'BR_2017_PORTING' into BR_2018_V8_5
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ShapeBathymetry.cxx
index 156e76c48f45df748833f62a8501fc4d1d058469..b3d390141093fd35b134e305d1bd9d1d8c234022 100644 (file)
@@ -261,16 +261,16 @@ void HYDROGUI_ShapeBathymetry::RescaleBySelection()
 
 void HYDROGUI_ShapeBathymetry::Rescale( double theMin, double theMax )
 {
-  getContext()->ClearSelected();
+  getContext()->ClearSelected(true);
   myMin = qMin( theMin, theMax );
   myMax = qMax( theMin, theMax );
   setToUpdateColorScale( true );
 
   if( !getAISObjects().isEmpty() )
   {
-    getContext()->RecomputePrsOnly( getAISObjects()[0] );
+    getContext()->RecomputePrsOnly( getAISObjects()[0], true );
     //getAISObjects()[0]->Redisplay();
-  }
+}
 }
 
 void HYDROGUI_ShapeBathymetry::RescaleDefault()
@@ -318,10 +318,11 @@ void HYDROGUI_ShapeBathymetry::TextLabels( bool isOn, bool isUpdateCurrentViewer
   if( isOn )
     selection = selected();
 
-  //getContext()->ClearSelected();
+
+  //getContext()->ClearSelected(true);
   prs->SetTextLabels( selection );
   getContext()->RecomputePrsOnly( prs, Standard_False, Standard_False );
   //prs->Redisplay();
   if( isUpdateCurrentViewer )
-    getContext()->UpdateCurrentViewer();
+  getContext()->UpdateCurrentViewer();
 }