Changeset 790 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyleHandler.java
- Timestamp:
- 2008-08-16T00:12:09+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyleHandler.java
r735 r790 87 87 for (int count=0; count<atts.getLength(); count++) { 88 88 if (atts.getQName(count).equals("src")) { 89 String imageFile = MapPaintStyles.get StyleDir()+"icons/"+atts.getValue(count);89 String imageFile = MapPaintStyles.getImageDir()+atts.getValue(count); 90 90 File f = new File(imageFile); 91 91 if (f.exists()) { … … 94 94 } else { 95 95 try { 96 URL path = getClass().getResource( "/styles/standard/icons/"+atts.getValue(count));96 URL path = getClass().getResource(MapPaintStyles.getImageDir()+atts.getValue(count)); 97 97 if (path == null) { 98 98 /* icon not found, using default */ 99 99 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"); 101 101 curIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(path)); 102 102 } else { … … 105 105 } 106 106 catch (Exception e){ 107 URL path = getClass().getResource( "/styles/standard/icons/amenity.png");107 URL path = getClass().getResource(MapPaintStyles.getImageDir()+"incomming/amenity.png"); 108 108 curIcon = new ImageIcon(Toolkit.getDefaultToolkit().createImage(path)); 109 109 }
Note:
See TracChangeset
for help on using the changeset viewer.