Ignore:
Timestamp:
2013-05-08T13:27:43+02:00 (11 years ago)
Author:
stoecker
Message:

fix #7658 - don't load icons from user relative paths (require explicit path settings)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r5874 r5946  
    599599            try {
    600600                File f = new File(path, name);
    601                 if (f.exists())
     601                if ((path != null || f.isAbsolute()) && f.exists())
    602602                    return f.toURI().toURL();
    603603            } catch (MalformedURLException e) {
Note: See TracChangeset for help on using the changeset viewer.