Ignore:
Timestamp:
2010-10-11T22:03:42+02:00 (14 years ago)
Author:
jttt
Message:

Update to latest josm

Location:
applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/RoutingLayer.java

    r22549 r23561  
    131131    public final Node getNearestHighwayNode(Point p) {
    132132        Node nearest = null;
     133        int snapDistance = NavigatableComponent.PROP_SNAP_DISTANCE.get();
    133134        double minDist = 0;
    134135        for (Way w : dataLayer.data.getWays()) {
     
    139140                Point P = Main.map.mapView.getPoint(n);
    140141                double dist = p.distanceSq(P);
    141                 if (dist < NavigatableComponent.snapDistance) {
     142                if (dist < snapDistance) {
    142143                    if ((nearest == null) || (dist < minDist)) {
    143144                        nearest = n;
  • applications/editors/josm/plugins/routing/src/com/innovant/josm/plugin/routing/gui/RoutingPreferenceDialog.java

    r19300 r23561  
    2828
    2929package com.innovant.josm.plugin.routing.gui;
     30
     31import static org.openstreetmap.josm.tools.I18n.tr;
    3032
    3133import java.awt.ComponentOrientation;
     
    5153import javax.swing.table.DefaultTableModel;
    5254
    53 import static org.openstreetmap.josm.tools.I18n.tr;
    54 
    5555import org.apache.log4j.Logger;
    5656import org.openstreetmap.josm.Main;
    57 import org.openstreetmap.josm.gui.preferences.PreferenceDialog;
    5857import org.openstreetmap.josm.gui.preferences.PreferenceSetting;
    5958import org.openstreetmap.josm.gui.preferences.PreferenceTabbedPane;
     
    6160
    6261import com.innovant.josm.jrt.osm.OsmWayTypes;
    63 import com.innovant.josm.plugin.routing.RoutingPlugin;
    6462
    6563public class RoutingPreferenceDialog implements PreferenceSetting {
Note: See TracChangeset for help on using the changeset viewer.