Ignore:
Timestamp:
2015-02-17T14:05:54+01:00 (11 years ago)
Author:
malcolmh
Message:

coast/land processing

File:
1 edited

Legend:

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

    r30894 r31014  
    251251                while (git.hasComp()) {
    252252                        git.nextComp();
     253                        boolean first = true;
    253254                        while (git.hasEdge()) {
    254255                                git.nextEdge();
    255256                                point = context.getPoint(git.next());
    256                                 p.moveTo(point.getX(), point.getY());
     257                                if (first) {
     258                                        p.moveTo(point.getX(), point.getY());
     259                                        first = false;
     260                                } else {
     261                                        p.lineTo(point.getX(), point.getY());
     262                                }
    257263                                while (git.hasNode()) {
    258264                                        point = context.getPoint(git.next());
Note: See TracChangeset for help on using the changeset viewer.