]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
0002774: External 20697 Plot2D Stop
authormgn <mgn@opencascade.com>
Thu, 9 Apr 2015 12:31:56 +0000 (15:31 +0300)
committermgn <mgn@opencascade.com>
Thu, 9 Apr 2015 12:31:56 +0000 (15:31 +0300)
Instead of extending of Plot2D input panel by means of "Stop" and "Cancel" buttons, it was decided to improve the performance of the procedure of displaying multiple curves.

src/Plot2d/Plot2d_ViewFrame.cxx

index 8d8969241e95ea68d6c7b58aec29497fc71b0748..dbe6b99d5cff1ee6a861e94f69b24e729347af6e 100755 (executable)
@@ -648,9 +648,12 @@ void Plot2d_ViewFrame::displayCurve( Plot2d_Curve* curve, bool update )
     aPCurve->setSymbolsColorData( curve->colorData(), curve->nbPoints() );
     aPCurve->setSymbolsColorMap( curve->getColorMap() );
   }
-  updateTitles();
+
   if ( update )
+  {
+    updateTitles();
     myPlot->replot();
+  }
 
   emit curveDisplayed( curve );
 }