mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 10:01:38 +08:00
Fix custom labels draw
This commit is contained in:
parent
24bebf1490
commit
194a3b0ab0
@ -1012,13 +1012,9 @@ bool JKQTPCoordinateAxis::getNextLabel(double& x, QString& label, bool init) {
|
||||
} else {
|
||||
for (int i=0; i<tickLabels.size(); i++) {
|
||||
if (x==tickLabels[i].first && i+1<tickLabels.size()) {
|
||||
if (x>=axismin && x<=axismax) {
|
||||
label=tickLabels[i+1].second;
|
||||
x=tickLabels[i + 1].first;
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
label=tickLabels[i + 1].second;
|
||||
return (x<=axismax);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user