Changeset 16062 in josm


Ignore:
Timestamp:
2020-03-07T23:45:22+01:00 (5 years ago)
Author:
simon04
Message:

see #18871 - fix MapCSSRendererTest.testRender[way-repeat-image]

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/MapImage.java

    r16060 r16062  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import java.awt.Dimension;
    67import java.awt.Graphics;
    78import java.awt.Image;
     
    146147                .setArchive(source.zipIcons)
    147148                .setInArchiveDir(source.getZipEntryDirName())
    148                 .setWidth(width)
    149                 .setHeight(height)
    150149                .setOptional(true)
    151150                .getResourceAsync(result -> {
     
    157156                            img = noIcon == null ? null : noIcon.getImage();
    158157                        } else {
    159                             img = rescale(result.getImageIcon().getImage());
     158                            img = rescale(result.getImageIcon(new Dimension(width, height)).getImage());
    160159                        }
    161160                        if (temporary) {
Note: See TracChangeset for help on using the changeset viewer.