Ignore:
Timestamp:
2010-11-15T00:02:20+01:00 (13 years ago)
Author:
bastiK
Message:

applied #5604 (patch by m.zdila) - support different formats of GPS coordinates in Add Node

File:
1 edited

Legend:

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

    r3363 r3656  
    2020 */
    2121public final class AddNodeAction extends JosmAction {
     22    // remember input from last time
     23    private String text;
     24
    2225    //static private final Logger logger = Logger.getLogger(AddNodeAction.class.getName());
    2326
     
    3437
    3538        LatLonDialog dialog = new LatLonDialog(Main.parent, tr("Add Node..."), ht("/Action/AddNode"));
     39
     40        if (text != null) {
     41            dialog.setText(text);
     42        }
     43
    3644        dialog.setVisible(true);
    3745        if (dialog.isCanceled())
     
    4149        if (coordinates == null)
    4250            return;
     51
     52        text = dialog.getText();
     53
    4354        Node nnew = new Node(coordinates);
    4455
Note: See TracChangeset for help on using the changeset viewer.