From 83928a7df07c89be0a2f0c04796664da440d60f5 Mon Sep 17 00:00:00 2001 From: Priyansh Bhuva <49712877+prjbhuva@users.noreply.github.com> Date: Wed, 11 Oct 2023 18:06:02 -0400 Subject: [PATCH] Renamed the "markers" object at line 775 to "xAxisMarkers" as it was hiding the fielding at line 92. --- .../de/dennisguse/opentracks/chart/ChartView.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/de/dennisguse/opentracks/chart/ChartView.java b/src/main/java/de/dennisguse/opentracks/chart/ChartView.java index a9ab2ce08..3e83c08ca 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; } /**