/*!
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;
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 ) );