Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#200 Invalid QwtPlotAbstractBarChart behaviour

None
closed
nobody
None
7
2014-09-05
2013-12-16
Anonymous
No

Found a thing that QwtPlotAbstractBarChart::sampleWidth returns a negative value when using AutoAdjustSamples with big amount of samples:
const size_t numSamples = dataSize();

double w = 1.0;
if ( numSamples > 1 )
{
w = qAbs( boundingSize / ( numSamples - 1 ) );
}

width = qwtTransformWidth( map, value, w );
width -= d_data->spacing; // no check here

Discussion

  • Uwe Rathmann
    Uwe Rathmann
    2014-09-05

    I changed the code using the layoutHint() as minimum width for the bar in AutoAdjustSamples mode.

    The fix has been applied to all branches >= 6.1 - even if this is not 100% o.k for the idea of keeping "compatibility" between 6.1.0 and 6.1.1.

     


Anonymous


Cancel   Add attachments