Changeset 10378 in josm for trunk/src/org/openstreetmap/josm/gui/SideButton.java
- Timestamp:
- 2016-06-15T10:30:37+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/SideButton.java
r10365 r10378 102 102 if (i instanceof ImageIcon && i.getIconHeight() != iconHeight) { 103 103 Image im = ((ImageIcon) i).getImage(); 104 int newWidth = im.getWidth(null) * 104 int newWidth = im.getWidth(null) * iconHeight / im.getHeight(null); 105 105 ImageIcon icon = new ImageIcon(im.getScaledInstance(newWidth, iconHeight, Image.SCALE_SMOOTH)); 106 106 setIcon(icon);
Note:
See TracChangeset
for help on using the changeset viewer.