Ticket #507: marker_link.diff
| File marker_link.diff, 725 bytes (added by , 18 years ago) |
|---|
-
src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
87 87 88 88 // Try a relative file:// url, if the link is not in an URL-compatible form 89 89 if (relativePath != null && uri != null && !isWellFormedAddress(uri)) 90 uri = new File(relativePath , uri).toURI().toString();90 uri = new File(relativePath.getParentFile(), uri).toURI().toString(); 91 91 92 92 if (uri == null) 93 93 return new Marker(wpt.latlon, wpt.getString("name"), wpt.getString("symbol"));
