Changeset 13368 in josm


Ignore:
Timestamp:
2018-01-30T01:11:22+01:00 (4 months ago)
Author:
bastiK
Message:

see #15747 - safer way to get center coordinates of image

File:
1 edited

Legend:

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

    r13301 r13368  
    8989            try {
    9090                color = new Color(((BufferedImage) img).getRGB(
    91                         fillImage.getWidth() / 2, fillImage.getHeight() / 2)
     91                        img.getWidth(null) / 2, img.getHeight(null) / 2)
    9292                );
    9393            } catch (ArrayIndexOutOfBoundsException e) {
Note: See TracChangeset for help on using the changeset viewer.