- // the points should be removed in a decreased order
- QMap<int, QList<int> > aConvPoints;
- convert( aPoints, aConvPoints );
- QMap<int, QList<int> >::const_iterator anIt = aConvPoints.begin(),
- aLast = aConvPoints.end();
- for ( ; anIt != aLast; anIt++ ) {
- int aSectionId = anIt.key();
-
- QList<int> aSectionPoints = anIt.value();
- qSort( aPoints );
- for( int i = aSectionPoints.size()-1; i >= 0; i-- ){
- int aPntIndx = aSectionPoints[i];
- myCurve->removePoint( aSectionId, aPntIndx );
- mySectionView->pointsRemoved( aSectionId, aPntIndx );
- }
- }
-