Changeset 24069 in osm for applications
- Timestamp:
- 2010-11-04T19:49:47+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/pdfimport/src/pdfimport/PathOptimizer.java
r24061 r24069 354 354 //remove excess segments from start of chain 355 355 while (lastPoint != firstPoint) { 356 PdfPath pathToRemove = pathChain. get(0);356 PdfPath pathToRemove = pathChain.remove(0); 357 357 firstPoint = pathToRemove.getOtherEnd(firstPoint); 358 358 } … … 379 379 pathChain.add(0, firstPath); 380 380 381 if (!pointsInPath.contains( nextPoint)) {381 if (!pointsInPath.contains(firstPoint)) { 382 382 pointsInPath.add(firstPoint); 383 383 changed = true; … … 388 388 //remove excess segments from end of chain 389 389 while (lastPoint != firstPoint) { 390 PdfPath pathToRemove = pathChain. get(pathChain.size() - 1);390 PdfPath pathToRemove = pathChain.remove(pathChain.size() - 1); 391 391 lastPoint = pathToRemove.getOtherEnd(lastPoint); 392 392 }
Note:
See TracChangeset
for help on using the changeset viewer.