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 634a690 commit a4ca1f3
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 a4ca1f3

Please sign in to comment.