Ignore:
Timestamp:
2019-11-02T15:35:24+01:00 (5 years ago)
Author:
donvip
Message:

update to JOSM 15496

Location:
applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoMode.java

    r34755 r35215  
    2727import org.openstreetmap.josm.data.coor.EastNorth;
    2828import org.openstreetmap.josm.data.gpx.GpxTrack;
    29 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     29import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    3030import org.openstreetmap.josm.data.gpx.WayPoint;
    3131import org.openstreetmap.josm.data.projection.ProjectionRegistry;
     
    222222            for (GpxTrack track : gpxL.data.tracks) {
    223223                boolean f = true;
    224                 sg: for (GpxTrackSegment seg : track.getSegments()) {
     224                sg: for (IGpxTrackSegment seg : track.getSegments()) {
    225225                    for (WayPoint S : seg.getWayPoints()) {
    226226                        if (S.hasDate()) {
     
    244244            double maxD = mv.getDist100Pixel()/3;
    245245            for (GpxTrack track : gpxL.data.tracks) {
    246                 for (GpxTrackSegment seg : track.getSegments()) {
     246                for (IGpxTrackSegment seg : track.getSegments()) {
    247247                    oldWp = null; // next segment will have new previous point
    248248                    for (WayPoint S : seg.getWayPoints()) {
     
    268268                    Stroke oldStroke = g.getStroke();
    269269                    g.setStroke(new BasicStroke(10));
    270                     for (GpxTrackSegment seg : trk.getSegments()) {
    271                     Point oldP = null, curP = null; // next segment will have new previous point
     270                    for (IGpxTrackSegment seg : trk.getSegments()) {
     271                        Point oldP = null, curP = null; // next segment will have new previous point
    272272                        for (WayPoint S : seg.getWayPoints()) {
    273273                            curP = mv.getPoint(S.getEastNorth(ProjectionRegistry.getProjection()));
  • applications/editors/josm/plugins/infomode/src/org/openstreetmap/josm/plugins/infomode/InfoPanel.java

    r34755 r35215  
    2121import org.openstreetmap.josm.data.SystemOfMeasurement;
    2222import org.openstreetmap.josm.data.gpx.GpxTrack;
    23 import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
     23import org.openstreetmap.josm.data.gpx.IGpxTrackSegment;
    2424import org.openstreetmap.josm.data.gpx.WayPoint;
    2525import org.openstreetmap.josm.gui.MainApplication;
     
    7676
    7777            double tm = -1;
    78             for (GpxTrackSegment seg : trk.getSegments()) {
     78            for (IGpxTrackSegment seg : trk.getSegments()) {
    7979                    for (WayPoint S : seg.getWayPoints()) {
    8080                        if (S.getTime() > tm) {
     
    8686            for (GpxTrack track : tracks) {
    8787                boolean f = true;
    88                 sg: for (GpxTrackSegment seg : track.getSegments()) {
     88                sg: for (IGpxTrackSegment seg : track.getSegments()) {
    8989                    for (WayPoint S : seg.getWayPoints()) {
    9090                        if (S.getTime() > tm) {
Note: See TracChangeset for help on using the changeset viewer.