Salome HOME
Merge remote-tracking branch 'remotes/origin/BR_2017' into HEAD
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ShapeBathymetry.cxx
index f59c3302d4eee523acd876825ed4c5def59cdc60..c9416967a1a17ea921c40b91637960df3198526b 100644 (file)
@@ -298,7 +298,7 @@ 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 );
@@ -307,7 +307,7 @@ void HYDROGUI_ShapeBathymetry::Rescale( double theMin, double theMax )
   {
     getContext()->RecomputePrsOnly( getAISObjects()[0] );
     //getAISObjects()[0]->Redisplay();
-  }
+}
 }
 
 void HYDROGUI_ShapeBathymetry::RescaleDefault()
@@ -355,10 +355,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();
 }