Changeset 4824 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2012-01-19T23:11:52+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageResource.java
r4820 r4824 94 94 } 95 95 Image img; 96 if (width == dim.width && height == dim.height) { 97 img = icon.getImage(); 98 } else { 99 img = icon.getImage().getScaledInstance(width, height, Image.SCALE_SMOOTH); 100 } 96 img = icon.getImage().getScaledInstance(width, height, Image.SCALE_SMOOTH); 101 97 boolean sanitized = false; 102 98 if (sanitize == SanitizeMode.ALWAYS || (sanitize == SanitizeMode.MAKE_BUFFEREDIMAGE && !(img instanceof BufferedImage))) {
Note:
See TracChangeset
for help on using the changeset viewer.