Ignore:
Timestamp:
2008-08-16T00:12:09+02:00 (16 years ago)
Author:
stoecker
Message:

some cleanup in mappaint and presets

File:
1 edited

Legend:

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

    r735 r790  
    8787                                for (int count=0; count<atts.getLength(); count++) {
    8888                                        if (atts.getQName(count).equals("src")) {
    89                                                 String imageFile = MapPaintStyles.getStyleDir()+"icons/"+atts.getValue(count);
     89                                                String imageFile = MapPaintStyles.getImageDir()+atts.getValue(count);
    9090                                                File f = new File(imageFile);
    9191                                                if (f.exists()) {
     
    9494                                                } else {
    9595                                                        try {
    96                                                                 URL path = getClass().getResource("/styles/standard/icons/"+atts.getValue(count));
     96                                                                URL path = getClass().getResource(MapPaintStyles.getImageDir()+atts.getValue(count));
    9797                                                                if (path == null) {
    9898                                                                        /* icon not found, using default */
    9999                                                                        System.out.println("Mappaint: Icon " + atts.getValue(count) + " not found, using default icon");
    100                                                                         path = getClass().getResource("/styles/standard/icons/misc/no_icon.png");
     100                                                                        path = getClass().getResource(MapPaintStyles.getImageDir()+"misc/no_icon.png");
    101101                                                                        curIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(path));
    102102                                                                } else {
     
    105105                                                        }
    106106                                                        catch (Exception e){
    107                                                                 URL path = getClass().getResource("/styles/standard/icons/amenity.png");
     107                                                                URL path = getClass().getResource(MapPaintStyles.getImageDir()+"incomming/amenity.png");
    108108                                                                curIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(path));
    109109                                                        }
Note: See TracChangeset for help on using the changeset viewer.