Skip to content

Commit

Permalink
Fixed axis label disappearing when zooming in
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgindi committed Jan 22, 2020
1 parent 8466bb5 commit eb95aff
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -214,11 +214,14 @@ protected void computeAxisValues(float min, float max) {
double f;
int i;

if (interval != 0.0) {
if (interval != 0.0 && last != first) {
for (f = first; f <= last; f += interval) {
++n;
}
}
else if (last == first && n == 0) {
n = 1;
}

mAxis.mEntryCount = n;

Expand Down

0 comments on commit eb95aff

Please sign in to comment.