Hello,

I noticed an error in QwtScaleDiv::invert() (VS /analyze caught it) :

Qt Code:
  1. for ( int i = 0; i < NTickTypes; i++ )
  2. {
  3. QList<double>& ticks = d_ticks[i];
  4.  
  5. const int size = ticks.count();
  6. const int size2 = size / 2;
  7.  
  8. for ( int i = 0; i < size2; i++ )
  9. qSwap( ticks[i], ticks[size - 1 - i] );
  10. }
To copy to clipboard, switch view to plain text mode 

I believe the second for() should use j or something instead of i.

Thanks!