Changeset 18187 in josm for trunk/test


Ignore:
Timestamp:
2021-08-31T23:17:15+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21260 - fix reprojection of MVT tiles (patch by taylor.smock)

Location:
trunk/test/unit/org/openstreetmap/josm
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/testutils/FakeGraphics.java

    r15775 r18187  
    3232 */
    3333public final class FakeGraphics extends Graphics2D {
     34    // This is needed just in case someone wants to fake paint something
     35    private Rectangle bounds;
     36
    3437    @Override
    3538    public void setXORMode(Color c1) {
     
    5053    @Override
    5154    public void setClip(int x, int y, int width, int height) {
     55        this.bounds = new Rectangle(x, y, width, height);
    5256    }
    5357
     
    7377    @Override
    7478    public Rectangle getClipBounds() {
    75         return null;
     79        return this.bounds;
    7680    }
    7781
Note: See TracChangeset for help on using the changeset viewer.