Hello,
I noticed an error in QwtScaleDiv::invert() (VS /analyze caught it) :
for ( int i = 0; i < NTickTypes; i++ )
{
QList<double>& ticks = d_ticks[i];
const int size = ticks.count();
const int size2 = size / 2;
for ( int i = 0; i < size2; i++ )
qSwap( ticks[i], ticks[size - 1 - i] );
}
for ( int i = 0; i < NTickTypes; i++ )
{
QList<double>& ticks = d_ticks[i];
const int size = ticks.count();
const int size2 = size / 2;
for ( int i = 0; i < size2; i++ )
qSwap( ticks[i], ticks[size - 1 - i] );
}
To copy to clipboard, switch view to plain text mode
I believe the second for() should use j or something instead of i.
Thanks!
Bookmarks