diff --git a/src/main/java/de/dennisguse/opentracks/chart/ChartView.java b/src/main/java/de/dennisguse/opentracks/chart/ChartView.java index b92757c3d..d51155444 100644 --- a/src/main/java/de/dennisguse/opentracks/chart/ChartView.java +++ b/src/main/java/de/dennisguse/opentracks/chart/ChartView.java @@ -772,16 +772,16 @@ private double getXAxisInterval() { } private List getXAxisMarkerPositions(double interval) { - List markers = new ArrayList<>(); - markers.add(0d); + List xAxisMarkers = new ArrayList<>(); + xAxisMarkers.add(0d); for (int i = 1; i * interval < maxX; i++) { - markers.add(i * interval); + xAxisMarkers.add(i * interval); } - if (markers.size() < 2) { - markers.add(maxX); + if (xAxisMarkers.size() < 2) { + xAxisMarkers.add(maxX); } - return markers; + return xAxisMarkers; } /**