Changeset 14757 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2019-02-01T18:45:09+01:00 (6 years ago)
Author:
Don-vip
Message:

fix #17276 - catch and ignore ImagingOpException when applying image filters

File:
1 edited

Legend:

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

    r14120 r14757  
    1010import java.awt.image.BufferedImage;
    1111import java.awt.image.BufferedImageOp;
     12import java.awt.image.ImagingOpException;
    1213import java.util.ArrayList;
    1314import java.util.Arrays;
     
    4243import org.openstreetmap.josm.tools.ImageProvider;
    4344import org.openstreetmap.josm.tools.ImageProvider.ImageSizes;
     45import org.openstreetmap.josm.tools.Logging;
    4446
    4547/**
     
    315317    public BufferedImage applyImageProcessors(BufferedImage img) {
    316318        for (ImageProcessor processor : imageProcessors) {
    317             img = processor.process(img);
     319            try {
     320                img = processor.process(img);
     321            } catch (ImagingOpException e) {
     322                Logging.error(e);
     323            }
    318324        }
    319325        return img;
Note: See TracChangeset for help on using the changeset viewer.