Changeset 12102 in josm


Ignore:
Timestamp:
2017-05-10T23:31:34+02:00 (17 months ago)
Author:
michael2402
Message:

Fix #14763: Do not apply colorful filter op if source image is of custom type.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/layer/imagery/ColorfulFilter.java

    r11914 r12102  
    3232    @Override
    3333    public BufferedImage filter(BufferedImage src, BufferedImage dst) {
    34         if (src.getWidth() == 0 || src.getHeight() == 0) {
     34        if (src.getWidth() == 0 || src.getHeight() == 0 || src.getType() == BufferedImage.TYPE_CUSTOM) {
    3535            return src;
    3636        }
Note: See TracChangeset for help on using the changeset viewer.