Ignore:
Timestamp:
2015-07-06T16:44:58+02:00 (10 years ago)
Author:
malcolmh
Message:

update jicons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/seachart/src/render/Renderer.java

    r31157 r31343  
    4343                sScale = symbolScale[zoom] * factor;
    4444                if (map != null) {
    45                         Point2D tl = context.getPoint(map.new Snode(map.bounds.maxlat, map.bounds.minlon));
    46                         Point2D br = context.getPoint(map.new Snode(map.bounds.minlat, map.bounds.maxlon));
    47                         g2.clip(new Rectangle2D.Double(tl.getX(), tl.getY(), (br.getX() - tl.getX()), (br.getY() - tl.getY())));
    48                         g2.setBackground(Symbols.Bwater);
     45                        if (context.clip()) {
     46                                Point2D tl = context.getPoint(map.new Snode(map.bounds.maxlat, map.bounds.minlon));
     47                                Point2D br = context.getPoint(map.new Snode(map.bounds.minlat, map.bounds.maxlon));
     48                                g2.clip(new Rectangle2D.Double(tl.getX(), tl.getY(), (br.getX() - tl.getX()), (br.getY() - tl.getY())));
     49                        }
     50                        g2.setBackground(context.background());
    4951                        g2.clearRect(rect.x, rect.y, rect.width, rect.height);
    5052                        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
Note: See TracChangeset for help on using the changeset viewer.