mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-11 23:00:59 +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;
|
int wayPointNumber = 1;
|
||||||
for(Pair<Waypoint, Pair<TimePoint, TimePoint>> markPassingTimes: markPassingsTimes) {
|
for(Pair<Waypoint, Pair<TimePoint, TimePoint>> markPassingTimes: markPassingsTimes) {
|
||||||
MarkPassingTimesDTO markPassingTimesDTO = new MarkPassingTimesDTO();
|
MarkPassingTimesDTO markPassingTimesDTO = new MarkPassingTimesDTO();
|
||||||
String name = "L" + wayPointNumber + 1;
|
String name = "L" + (wayPointNumber - 1);
|
||||||
if(wayPointNumber == 1) {
|
if(wayPointNumber == 1) {
|
||||||
name = "S";
|
name = "S";
|
||||||
} else if(wayPointNumber == numberOfWaypoints) {
|
} else if(wayPointNumber == numberOfWaypoints) {
|
||||||
|
|||||||
Reference in new issue
Block a user