Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
DorreenRostami committed Oct 11, 2023
2 parents 1769ea0 + 83928a7 commit 26130df
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/de/dennisguse/opentracks/chart/ChartView.java
Original file line number Diff line number Diff line change
Expand Up @@ -772,16 +772,16 @@ private double getXAxisInterval() {
}

private List<Double> getXAxisMarkerPositions(double interval) {
List<Double> markers = new ArrayList<>();
markers.add(0d);
List<Double> 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;
}

/**
Expand Down

0 comments on commit 26130df

Please sign in to comment.