Skip to content

Commit f0810db

Browse files
authored
Merge pull request #74 from vincentneo/fix/73
Fix route point parsing
2 parents d9baed4 + 4cad35b commit f0810db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Classes/GPXRoute.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public final class GPXRoute: GPXElement, Codable {
6969
for child in raw.children {
7070
switch child.name {
7171
case "link": self.link = GPXLink()
72-
case "rtept": self.routepoints = [GPXRoutePoint]()
72+
case "rtept": self.routepoints.append(GPXRoutePoint(raw: child))
7373
case "name": self.name = child.text
7474
case "cmt": self.comment = child.text
7575
case "desc": self.desc = child.text

0 commit comments

Comments
 (0)