- }
- for ( iter = logicColorPoints.begin(); i<=maxIndex && !addedPoint; iter++ )
- {
- nextIter = iter;
- int before = (*iter)->getRealX() ;
- if(before>xRealValue && i==0)
- {
- //Is the first point
- logicColorPoints.insert( iter, newColorPoint );
- addedPoint =true;
- lastAddedPoint = newColorPoint;
- }
- else if(before<xRealValue && i==maxIndex)