Changeset 14868 in josm for trunk/src/org
- Timestamp:
- 2019-03-10T12:30:50+01:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/DownloadAlongAction.java
r14153 r14868 69 69 bounds.getHeight() / 2); 70 70 } 71 addToDownload( a, r1, results, maxArea);72 addToDownload( a, r2, results, maxArea);71 addToDownload(tmp, r1, results, maxArea); 72 addToDownload(tmp, r2, results, maxArea); 73 73 } else { 74 74 results.add(bounds); -
trunk/src/org/openstreetmap/josm/gui/layer/gpx/DownloadAlongTrackAction.java
r12634 r14868 6 6 import java.awt.event.ActionEvent; 7 7 import java.awt.geom.Area; 8 import java.awt.geom.Path2D; 8 9 import java.awt.geom.Rectangle2D; 9 10 … … 104 105 class CalculateDownloadArea extends PleaseWaitRunnable { 105 106 106 private final Area a = new Area();107 private final Path2D path = new Path2D.Double(); 107 108 private boolean cancel; 108 109 private int ticks; … … 128 129 return; 129 130 } 130 confirmAndDownloadAreas( a, maxArea, panel.isDownloadOsmData(), panel.isDownloadGpxData(),131 confirmAndDownloadAreas(new Area(path), maxArea, panel.isDownloadOsmData(), panel.isDownloadGpxData(), 131 132 tr("Download from OSM along this track"), progressMonitor); 132 133 } … … 152 153 // we add a buffer around the point. 153 154 r.setRect(c.lon() - bufferX, c.lat() - bufferY, 2 * bufferX, 2 * bufferY); 154 a.add(new Area(r));155 path.append(r, false); 155 156 return c; 156 157 }
Note:
See TracChangeset
for help on using the changeset viewer.