Skip to content
Permalink
Browse files

qwt fix for histogram

  • Loading branch information
etiennesky committed Jul 24, 2012
1 parent d3bc6c7 commit 4f4a6096c6e95fcc157fd62a51265d2bf29ab5a5
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/raster/qgsrasterhistogramwidget.cpp
@@ -830,7 +830,11 @@ QString findClosestTickVal( double target, QwtScaleDiv * scale, int div = 100 )
double min = majorTicks[0] - diff;
if ( min > target )
min -= ( majorTicks[1] - majorTicks[0] );
#if defined(QWT_VERSION) && QWT_VERSION<0x0502000
double max = scale->hBound();
#else
double max = scale->upperBound();
#endif
double closest = target;
double current = min;

0 comments on commit 4f4a609

Please sign in to comment.
You can’t perform that action at this time.