Ignore:
Timestamp:
2011-02-10T12:15:36+01:00 (13 years ago)
Author:
bastiK
Message:

mappaint: find images relative to the source file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r3876 r3886  
    7777                dirs.add(a[1]);
    7878            }
     79        }
     80        String sourceDir = ref.source.getLocalSourceDir();
     81        if (sourceDir != null) {
     82            dirs.add(sourceDir);
    7983        }
    8084        ImageIcon i = ImageProvider.getIfAvailable(dirs, "mappaint."+styleName, null, ref.iconName, ref.source.zipIcons, sanitize);
Note: See TracChangeset for help on using the changeset viewer.