Modify ↓
#2601 closed defect (duplicate)
Links in waypoints are no longer read from gpx file after patch 2214
Reported by: | rudison | Owned by: | team |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | Cc: | hampelratte |
Description
After patch 2214 (svn changeset 1574) links in waypoints (*.wav) are no longer shown in the MarkerLayer after loading a gpx file.
Reason:
The following lines in GpxReader.java were changed with patch 2214 in endElement:
Before:
} else if (currentState != state.link) { Map<String, Object> attr = getAttr(); if (!attr.containsKey("link")) { attr.put("link", new LinkedList<GpxLink>()); } ((Collection<GpxLink>) attr.get("link")).add(currentLink); }
After:
} else if (currentState == state.metadata) { Map<String, Object> attr = getAttr(); if (!attr.containsKey(GpxData.META_LINKS)) { attr.put(GpxData.META_LINKS, new LinkedList<GpxLink>()); } ((Collection<GpxLink>) attr.get(GpxData.META_LINKS)).add(currentLink); }
This change avoids saving the link in the waypoint object.
Attachments (0)
Change History (5)
comment:1 by , 16 years ago
Cc: | added |
---|
comment:2 by , 16 years ago
comment:3 by , 16 years ago
Ok, the if clause should be
} else if (currentState != state.link) {
as before
comment:4 by , 16 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Just found that this ticket is identical to ticket 2547.