Changeset 5454 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2012-08-18T21:37:17+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r5226 r5454 7 7 import java.awt.Font; 8 8 import java.awt.GridBagLayout; 9 import java.awt.Image; 9 10 import java.awt.event.MouseWheelEvent; 10 11 import java.awt.event.MouseWheelListener; … … 357 358 String iconName = tps.getIconName(); 358 359 ImageIcon icon = iconName != null && iconName.length() > 0 ? ImageProvider.get("preferences", iconName) : null; 360 // See #6985 - Force icons to be 48x48 pixels 361 if (icon != null && (icon.getIconHeight() != 48 || icon.getIconWidth() != 48)) { 362 icon = new ImageIcon(icon.getImage().getScaledInstance(48, 48, Image.SCALE_DEFAULT)); 363 } 359 364 if (settingsInitialized.contains(tps)) { 360 365 // If it has been initialized, add corresponding tab(s)
Note:
See TracChangeset
for help on using the changeset viewer.