mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 06:10:56 +00:00
fix for leg naming bug
This commit is contained in:
1 parent
99ef67c917
commit
8b8cf96894
1 file changed
+1
-1
+1
-1
@@ -1023,7 +1023,7 @@ public class SailingServiceImpl extends RemoteServiceServlet implements SailingS
|
||||
int wayPointNumber = 1;
|
||||
for(Pair<Waypoint, Pair<TimePoint, TimePoint>> markPassingTimes: markPassingsTimes) {
|
||||
MarkPassingTimesDTO markPassingTimesDTO = new MarkPassingTimesDTO();
|
||||
String name = "L" + wayPointNumber + 1;
|
||||
String name = "L" + (wayPointNumber - 1);
|
||||
if(wayPointNumber == 1) {
|
||||
name = "S";
|
||||
} else if(wayPointNumber == numberOfWaypoints) {
|
||||
|
||||
Reference in new issue
Block a user