Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#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 stoecker, 16 years ago

Cc: hampelratte added

comment:2 by rudison, 16 years ago

Just found that this ticket is identical to ticket 2547.

comment:3 by hampelratte, 16 years ago

Ok, the if clause should be

} else if (currentState != state.link) {

as before

comment:4 by stoecker, 16 years ago

Resolution: duplicate
Status: newclosed

comment:5 by stoecker, 16 years ago

Closed as duplicate of #2547.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.