Changeset 14965 in josm


Ignore:
Timestamp:
2019-04-06T20:46:30+02:00 (8 months ago)
Author:
GerdP
Message:

fix copy+paste error, no functional change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/DownloadAlongWayAction.java

    r14962 r14965  
    5959
    6060        // Convert OSM ways to Path2D
    61         Path2D gpxPath = new Path2D.Double();
     61        Path2D alongPath = new Path2D.Double();
    6262        for (Way way : selectedWays) {
    6363            boolean first = true;
    6464            for (Node p : way.getNodes()) {
    6565                if (first) {
    66                     gpxPath.moveTo(p.lon(), p.lat());
     66                    alongPath.moveTo(p.lon(), p.lat());
    6767                    first = false;
    6868                } else {
    69                     gpxPath.lineTo(p.lon(), p.lat());
     69                    alongPath.lineTo(p.lon(), p.lat());
    7070                }
    7171            }
    7272        }
    73         return createCalcTask(gpxPath, panel, tr("Download from OSM along selected ways"));
     73        return createCalcTask(alongPath, panel, tr("Download from OSM along selected ways"));
    7474
    7575    }
Note: See TracChangeset for help on using the changeset viewer.