Changeset 31031 in osm for applications/editors/josm/plugins/seachart/src/render
- Timestamp:
- 2015-02-20T12:34:09+01:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/seachart/src/render/Renderer.java
r31028 r31031 195 195 git.nextEdge(); 196 196 while (git.hasNode()) { 197 Snode node = git.next(); 198 if (node == null) continue; 197 199 prev = next; 198 next = context.getPoint( git.next());200 next = context.getPoint(node); 199 201 angle = Math.atan2(next.getY() - prev.getY(), next.getX() - prev.getX()); 200 202 piv = true; … … 265 267 } 266 268 while (git.hasNode()) { 267 point = context.getPoint(git.next()); 269 Snode node = git.next(); 270 if (node == null) continue; 271 point = context.getPoint(node); 268 272 p.lineTo(point.getX(), point.getY()); 269 273 } … … 343 347 p.moveTo(point.getX(), point.getY()); 344 348 while (git.hasNode()) { 345 point = context.getPoint(git.next()); 349 Snode node = git.next(); 350 if (node == null) continue; 351 point = context.getPoint(node); 346 352 p.lineTo(point.getX(), point.getY()); 347 353 } … … 492 498 git.nextEdge(); 493 499 while (git.hasNode()) { 500 Snode node = git.next(); 501 if (node == null) continue; 494 502 prev = next; 495 next = context.getPoint( git.next());503 next = context.getPoint(node); 496 504 angle = Math.atan2(next.getY() - prev.getY(), next.getX() - prev.getX()); 497 505 piv = true;
Note:
See TracChangeset
for help on using the changeset viewer.