Ignore:
Timestamp:
2016-09-23T21:13:02+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #13674 - allow case insensitive lat/lon input + reject more invalid cases

File:
1 edited

Legend:

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

    r10601 r11045  
    2020import org.openstreetmap.josm.data.coor.LatLon;
    2121import org.openstreetmap.josm.gui.MapView;
    22 import org.openstreetmap.josm.gui.dialogs.LatLonDialog;
    2322import org.openstreetmap.josm.gui.widgets.JosmTextField;
    2423import org.openstreetmap.josm.tools.GBC;
     
    148147            } catch (NumberFormatException ex) {
    149148                try {
    150                     ll = LatLonDialog.parseLatLon(lat.getText() + "; " + lon.getText());
     149                    ll = LatLon.parse(lat.getText() + "; " + lon.getText());
    151150                } catch (IllegalArgumentException ex2) {
    152151                    JOptionPane.showMessageDialog(Main.parent,
Note: See TracChangeset for help on using the changeset viewer.