Fix pace chart

This commit is contained in:
Alexey Kulish 2017-03-16 17:25:50 +03:00
parent cda8c44074
commit 151416e4b6

View file

@ -1252,7 +1252,7 @@ public class GpxUiHelper {
} else {
nextY = divSpeed / s.speed;
}
if (nextY < 0) {
if (nextY < 0 || Float.isInfinite(nextY)) {
nextY = 0;
}
values.add(new Entry(nextX, nextY));