Changeset 19587 in osm for applications/editors/josm
- Timestamp:
- 2010-01-22T17:56:27+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/tageditor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tageditor/build.xml
r19413 r19587 28 28 29 29 30 <property name="commit.message" value=" Uses new constructor for Plugin" />30 <property name="commit.message" value="Fixed NPE when icon is missing" /> 31 31 <property name="plugin.main.version" value="2830" /> 32 32 -
applications/editors/josm/plugins/tageditor/src/org/openstreetmap/josm/plugins/tageditor/preset/Item.java
r17638 r19587 69 69 70 70 public Icon getIcon() { 71 // FIXME: should also load icons from the image paths configured in the 72 // preferences for presets 73 // 71 74 if (icon == null) { 72 75 // load the icon from the JOSM resources, use Main classloader … … 75 78 if (url == null) { 76 79 logger.warning("failed to create URL for resource 'images/" + getIconName() + "'"); 77 icon =null;80 return null; 78 81 } else { 79 82 icon =new ImageIcon(url); 80 } 83 } 81 84 Image i = icon.getImage().getScaledInstance(16, 16, Image.SCALE_DEFAULT); 82 85 icon = new ImageIcon(i);
Note:
See TracChangeset
for help on using the changeset viewer.