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 23, 2020
1 parent 16db88d commit f95f7d7
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 f95f7d7

Please sign in to comment.