改进代码
This commit is contained in:
@@ -333,8 +333,7 @@ void QwtWeedingCurveFitter::setChunkSize( uint numPoints )
|
||||
}
|
||||
|
||||
/*!
|
||||
|
||||
\return Maximum for the number of points passed to a run
|
||||
\return Maximum for the number of points passed to a run
|
||||
of the algorithm - or 0, when unlimited
|
||||
\sa setChunkSize()
|
||||
*/
|
||||
@@ -349,8 +348,10 @@ uint QwtWeedingCurveFitter::chunkSize() const
|
||||
*/
|
||||
QPolygonF QwtWeedingCurveFitter::fitCurve( const QPolygonF &points ) const
|
||||
{
|
||||
QPolygonF fittedPoints;
|
||||
if ( points.isEmpty() )
|
||||
return points;
|
||||
|
||||
QPolygonF fittedPoints;
|
||||
if ( d_data->chunkSize == 0 )
|
||||
{
|
||||
fittedPoints = simplify( points );
|
||||
|
||||
Reference in New Issue
Block a user