Skip to content

Commit

Permalink
fix qwt version check
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennesky committed Jul 25, 2012
1 parent 4f4a609 commit d039c3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/raster/qgsrasterhistogramwidget.cpp
Expand Up @@ -830,7 +830,7 @@ 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
#if defined(QWT_VERSION) && QWT_VERSION<0x050200
double max = scale->hBound();
#else
double max = scale->upperBound();
Expand Down

0 comments on commit d039c3f

Please sign in to comment.