Ignore:
Timestamp:
2018-08-18T18:13:25+02:00 (6 years ago)
Author:
donvip
Message:

update to JOSM 14153

File:
1 edited

Legend:

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

    r33722 r34523  
    2323import javax.swing.PopupFactory;
    2424
    25 import org.openstreetmap.josm.Main;
    2625import org.openstreetmap.josm.actions.mapmode.MapMode;
    2726import org.openstreetmap.josm.data.Bounds;
     
    3029import org.openstreetmap.josm.data.gpx.GpxTrackSegment;
    3130import org.openstreetmap.josm.data.gpx.WayPoint;
     31import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    3232import org.openstreetmap.josm.gui.MainApplication;
    3333import org.openstreetmap.josm.gui.MapView;
     
    7070        /*if (!(Main.main.getActiveLayer() instanceof GpxLayer)) {
    7171            boolean answer = ConditionalOptionPaneUtil.showConfirmationDialog(
    72                     "scan_all_layers", Main.parent,
     72                    "scan_all_layers", MainApplication.getMainFrame(),
    7373                    tr("Please select GPX layer to view only its trackpoint info. Do you want to scan all GPX layers?"),
    7474                    tr("Select layer to scan"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, JOptionPane.YES_OPTION );
     
    247247                    oldWp = null; // next segment will have new previous point
    248248                    for (WayPoint S : seg.getWayPoints()) {
    249                         d = S.getEastNorth(Main.getProjection()).distance(pos);
     249                        d = S.getEastNorth(ProjectionRegistry.getProjection()).distance(pos);
    250250
    251251                        if (d < minDist && d < maxD) {
     
    271271                    Point oldP = null, curP = null; // next segment will have new previous point
    272272                        for (WayPoint S : seg.getWayPoints()) {
    273                             curP = mv.getPoint(S.getEastNorth(Main.getProjection()));
     273                            curP = mv.getPoint(S.getEastNorth(ProjectionRegistry.getProjection()));
    274274                            if (oldP != null) g.drawLine(oldP.x, oldP.y, curP.x, curP.y);
    275275                            oldP = curP;
Note: See TracChangeset for help on using the changeset viewer.