Changeset 8733 in josm for trunk/src/org


Ignore:
Timestamp:
2015-09-07T23:32:27+02:00 (5 years ago)
Author:
simon04
Message:

fix #11836 - Zoom out with Gamma adjusted on imagery causes Exception

File:
1 edited

Legend:

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

    r8729 r8733  
    295295        public BufferedImage process(BufferedImage image) {
    296296            final LookupOp op = getOp(image.getRaster().getNumBands());
    297             final BufferedImage to = new BufferedImage(image.getWidth(), image.getHeight(), BufferedImage.TYPE_INT_RGB);
     297            final BufferedImage to = new BufferedImage(image.getWidth(), image.getHeight(), image.getType());
    298298            return op == null ? image : op.filter(image, to);
    299299        }
Note: See TracChangeset for help on using the changeset viewer.