From 99860e65d9bc522a899772390f61ac4455b2def9 Mon Sep 17 00:00:00 2001 From: ptv Date: Tue, 18 Sep 2007 08:21:25 +0000 Subject: [PATCH] Linux compilation --- src/Plot2d/Plot2d_SetupCurveDlg.cxx | 2 +- src/Plot2d/Plot2d_ViewWindow.cxx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Plot2d/Plot2d_SetupCurveDlg.cxx b/src/Plot2d/Plot2d_SetupCurveDlg.cxx index 862a8ded3..891ebf2bb 100644 --- a/src/Plot2d/Plot2d_SetupCurveDlg.cxx +++ b/src/Plot2d/Plot2d_SetupCurveDlg.cxx @@ -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; diff --git a/src/Plot2d/Plot2d_ViewWindow.cxx b/src/Plot2d/Plot2d_ViewWindow.cxx index 3a3e93190..e0a186cc2 100755 --- a/src/Plot2d/Plot2d_ViewWindow.cxx +++ b/src/Plot2d/Plot2d_ViewWindow.cxx @@ -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 ) ); -- 2.39.2