Ticket #507: marker_link.diff

File marker_link.diff, 725 bytes (added by anonymous, 18 years ago)

patch to fix this bug

  • src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java

     
    8787
    8888                                // Try a relative file:// url, if the link is not in an URL-compatible form
    8989                                if (relativePath != null && uri != null && !isWellFormedAddress(uri))
    90                                         uri = new File(relativePath, uri).toURI().toString();
     90                                        uri = new File(relativePath.getParentFile(), uri).toURI().toString();
    9191
    9292                                if (uri == null)
    9393                                        return new Marker(wpt.latlon, wpt.getString("name"), wpt.getString("symbol"));