Salome HOME
refs #1461: draft patch for some simple acceleration
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ShapeBathymetry.cxx
index 4b1df859e948784af6174908d9bd15ff7c89c042..acdac05bf2e92ebef5ef34315f926e1b8d94817f 100644 (file)
@@ -263,7 +263,10 @@ void HYDROGUI_ShapeBathymetry::Rescale( double theMin, double theMax )
   setToUpdateColorScale( true );
 
   if( !getAISObjects().isEmpty() )
-    getAISObjects()[0]->Redisplay();
+  {
+    getContext()->RecomputePrsOnly( getAISObjects()[0] );
+    //getAISObjects()[0]->Redisplay();
+  }
 }
 
 void HYDROGUI_ShapeBathymetry::RescaleDefault()
@@ -313,6 +316,7 @@ void HYDROGUI_ShapeBathymetry::TextLabels( bool isOn )
 
   getContext()->ClearSelected();
   prs->SetTextLabels( selection );
-  prs->Redisplay();
+  getContext()->RecomputePrsOnly( prs );
+  //prs->Redisplay();
   getContext()->UpdateCurrentViewer();
 }