Opened 13 years ago

Closed 12 years ago

#507 closed defect (fixed)

The path for waypoint links is composed erronously

Reported by: RaSchu Owned by: framm
Priority: major Milestone:
Component: Core Version: latest
Keywords: Cc:


If a gpx-file "abc.gpx" contains the following lines

  <wpt lat="54.47613000" lon="9.78714500">
    <name>Beginn des Trampelpfads</name>
    <link href="voice.wav"/>

JOSM composes a path like ".../abc.gpx/voice.wav" - which isn't (usually) a valid path.

Attachments (1)

marker_link.diff (725 bytes) - added by anonymous 12 years ago.
patch to fix this bug

Download all attachments as: .zip

Change History (6)

comment:1 Changed 13 years ago by RaSchu

I edited my local copy of the josm sources to get a workaround for this situation.

I changed line 91 of .../gui.layer.markerlayer/


uri = new File(relativePath, uri).toURI().toString();


uri = new File(relativePath.getParentFile(), uri).toURI().toString();

comment:2 Changed 12 years ago by anonymous

Version: latest

I've just tried to use audio waypoints today, and hit the same problem.
It would be very nice to have a fix for this commited.
If you prefer patches, I just attach the above mentionned change as a
unified diff file.

Changed 12 years ago by anonymous

Attachment: marker_link.diff added

patch to fix this bug

comment:3 Changed 12 years ago by dodi@…

this one is related to, could it be fixed too

Thanx. Dodi

comment:4 Changed 12 years ago by anonymous

No it's not.
This bug is trivial to reproduce and trivial to fix.
It's sad that no one had a look at it in a month and a half.

comment:5 Changed 12 years ago by tom_evans_a@…

Resolution: fixed
Status: newclosed

Applied in r576.

I can't see how the code ever did work, which makes me slightly nervous, but it does appear to need fixing.

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain framm.
as The resolution will be set.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.