Modify

Opened 16 years ago

Closed 16 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:

Description

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

  <wpt lat="54.47613000" lon="9.78714500">
    <ele>47.50000000</ele>
    <name>Beginn des Trampelpfads</name>
    <time>2007-11-11T11:25.06Z</time>
    <link href="voice.wav"/>
  </wpt>

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 16 years ago.
patch to fix this bug

Download all attachments as: .zip

Change History (6)

comment:1 by RaSchu, 16 years ago

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

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

from

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

to

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

comment:2 by anonymous, 16 years ago

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.

by anonymous, 16 years ago

Attachment: marker_link.diff added

patch to fix this bug

comment:3 by dodi@…, 16 years ago

this one is related to http://josm.openstreetmap.de/ticket/570, could it be fixed too

Thanx. Dodi

comment:4 by anonymous, 16 years ago

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 by tom_evans_a@…, 16 years ago

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
Action
as closed The owner will remain framm.
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.