Changeset 10358 in josm for trunk/src/org/openstreetmap/josm/gui/preferences
- Timestamp:
- 2016-06-12T12:00:38+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r10212 r10358 510 510 // Get icon 511 511 String iconName = tps.getIconName(); 512 ImageIcon icon = iconName != null && !iconName.isEmpty() ? ImageProvider.get("preferences", iconName) :null;513 // See #6985 - Force icons to be 48x48 pixels 514 if (icon != null && (icon.getIconHeight() != 48 || icon.getIconWidth() != 48)) {515 icon = new Image Icon(icon.getImage().getScaledInstance(48, 48, Image.SCALE_DEFAULT));512 ImageIcon icon = null; 513 514 if(iconName != null && !iconName.isEmpty()) { 515 icon = new ImageProvider("preferences", iconName).setSize(ImageProvider.ImageSizes.SETTINGS_TAB).get(); 516 516 } 517 517 if (settingsInitialized.contains(tps)) {
Note:
See TracChangeset
for help on using the changeset viewer.