Ignore:
Timestamp:
2016-08-19T22:47:37+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13375 - Fix icon rendering (patch by michael2402) - gsoc-core + add unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r10842 r10856  
    703703        g.setFont(text.font);
    704704
    705         int x = (int) (p.getInViewX() + text.xOffset);
    706         int y = (int) (p.getInViewY() + text.yOffset);
     705        int x = (int) (Math.round(p.getInViewX()) + text.xOffset);
     706        int y = (int) (Math.round(p.getInViewY()) + text.yOffset);
    707707        /**
    708708         *
     
    890890        }
    891891
    892         double x = p.getInViewX();
    893         double y = p.getInViewY();
     892        double x = Math.round(p.getInViewX());
     893        double y = Math.round(p.getInViewY());
    894894        temporaryGraphics.translate(x, y);
    895895        temporaryGraphics.rotate(theta);
Note: See TracChangeset for help on using the changeset viewer.