Changeset 4824 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2012-01-19T23:11:52+01:00 (13 years ago)
Author:
bastiK
Message:

fix scaling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageResource.java

    r4820 r4824  
    9494            }
    9595            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);
    10197            boolean sanitized = false;
    10298            if (sanitize == SanitizeMode.ALWAYS || (sanitize == SanitizeMode.MAKE_BUFFEREDIMAGE && !(img instanceof BufferedImage))) {
Note: See TracChangeset for help on using the changeset viewer.