fix for leg naming bug

This commit is contained in:
fmittag committed 2012-06-11 16:17:53 +02:00
1 parent 99ef67c917
commit 8b8cf96894
1 file changed
+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) {