Changeset 576 in josm


Ignore:
Timestamp:
2008-03-03T21:25:15+01:00 (17 years ago)
Author:
tom_e
Message:

Fix for relative file name in gpx link - from RaSchu, #507

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java

    r572 r576  
    9797                                // Try a relative file:// url, if the link is not in an URL-compatible form
    9898                if (relativePath != null && uri != null && !isWellFormedAddress(uri))
    99                     uri = new File(relativePath, uri).toURI().toString();
     99                    uri = new File(relativePath.getParentFile(), uri).toURI().toString();
    100100
    101101                String name_desc = "";
Note: See TracChangeset for help on using the changeset viewer.