[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Mon Feb 25 15:00:46 CET 2008
SVN commit 779097 by fenton:
Fix minor tick labels not drawn when no major tick is drawn.
M +1 -1 plotitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #779096:779097
@@ -1841,7 +1841,7 @@
int Low = ceil(min);
int High = floor(max)+1;
- bool minorLabels = ((High - Low) == 1);
+ bool minorLabels = ((High - Low) <= 1);
for (int i = Low - 1; i <= High; i+=tick) {
qreal majorPoint = pow(10, i);
if (majorPoint == 0) majorPoint = -350;
More information about the Kst
mailing list