Ignore:
Timestamp:
2016-09-03T16:52:05+02:00 (9 years ago)
Author:
donvip
Message:

fix some error-prone warnings

File:
1 edited

Legend:

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

    r32907 r32909  
    6868        if (map != null) {
    6969            if (context.clip()) {
    70                 Point2D tl = context.getPoint(map.new Snode(map.bounds.maxlat, map.bounds.minlon));
    71                 Point2D br = context.getPoint(map.new Snode(map.bounds.minlat, map.bounds.maxlon));
     70                Point2D tl = context.getPoint(new Snode(map.bounds.maxlat, map.bounds.minlon));
     71                Point2D br = context.getPoint(new Snode(map.bounds.minlat, map.bounds.maxlon));
    7272                g2.clip(new Rectangle2D.Double(tl.getX(), tl.getY(), (br.getX() - tl.getX()), (br.getY() - tl.getY())));
    7373            }
Note: See TracChangeset for help on using the changeset viewer.