Skip to content

Commit 4f4a609

Browse files
committedJul 24, 2012
qwt fix for histogram
1 parent d3bc6c7 commit 4f4a609

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/gui/raster/qgsrasterhistogramwidget.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,11 @@ QString findClosestTickVal( double target, QwtScaleDiv * scale, int div = 100 )
830830
double min = majorTicks[0] - diff;
831831
if ( min > target )
832832
min -= ( majorTicks[1] - majorTicks[0] );
833+
#if defined(QWT_VERSION) && QWT_VERSION<0x0502000
834+
double max = scale->hBound();
835+
#else
833836
double max = scale->upperBound();
837+
#endif
834838
double closest = target;
835839
double current = min;
836840

0 commit comments

Comments
 (0)
Please sign in to comment.