Changeset 16062 in josm
- Timestamp:
- 2020-03-07T23:45:22+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/MapImage.java
r16060 r16062 4 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 5 6 import java.awt.Dimension; 6 7 import java.awt.Graphics; 7 8 import java.awt.Image; … … 146 147 .setArchive(source.zipIcons) 147 148 .setInArchiveDir(source.getZipEntryDirName()) 148 .setWidth(width)149 .setHeight(height)150 149 .setOptional(true) 151 150 .getResourceAsync(result -> { … … 157 156 img = noIcon == null ? null : noIcon.getImage(); 158 157 } else { 159 img = rescale(result.getImageIcon( ).getImage());158 img = rescale(result.getImageIcon(new Dimension(width, height)).getImage()); 160 159 } 161 160 if (temporary) {
Note:
See TracChangeset
for help on using the changeset viewer.