]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Linux compilation
authorptv <ptv@opencascade.com>
Tue, 18 Sep 2007 08:21:25 +0000 (08:21 +0000)
committerptv <ptv@opencascade.com>
Tue, 18 Sep 2007 08:21:25 +0000 (08:21 +0000)
src/Plot2d/Plot2d_SetupCurveDlg.cxx
src/Plot2d/Plot2d_ViewWindow.cxx

index 862a8ded34e9522139d7ee4ce2d3736da58641ac..891ebf2bb81fb692cf6f68e2aad270b38da5f5a0 100644 (file)
@@ -386,7 +386,7 @@ bool Plot2d_SetupCurveDlg::storeCurveProps( const int id )
 /*!
   retrieveCurveProps, retrievs curve properties
 */
-void Plot2d_SetupCurveDlg::retrieveCurveProps( const id )
+void Plot2d_SetupCurveDlg::retrieveCurveProps( const int id )
 {
   if ( id < 0 || id > (int)myCurvesProps.count() - 1 )
     return;
index 3a3e931907333f36684d4b71aa0f2581e59224ce..e0a186cc29238ed7ff2062c33dded62862c72bc4 100755 (executable)
@@ -486,7 +486,8 @@ void Plot2d_ViewWindow::onEditLegend()
   if ( !myViewFrame->getCurves( lst ) )
     return;
   curveList::iterator crvIt = lst.begin();
-  for ( int i = 0, nb = aDlg.getNbCurves(); crvIt != lst.end() && i < nb; ++crvIt, i++ )
+  int i = 0, nb = aDlg.getNbCurves();
+  for ( ; crvIt != lst.end() && i < nb; ++crvIt, i++ )
   {
     Plot2d_Curve* crv = *crvIt;
     crv->setVerTitle( aDlg.getName( i ) );