Skip to content

Commit

Permalink
qwt fix for histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennesky committed Jul 24, 2012
1 parent d3bc6c7 commit 4f4a609
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/raster/qgsrasterhistogramwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 4f4a609

Please sign in to comment.