Ignore:
Timestamp:
2011-01-03T17:08:59+01:00 (14 years ago)
Author:
frederik
Message:

fix bug that would produce xml in the addr:street field when you hit enter in the auto-completion streetname box.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/terracer/src/terracer/HouseNumberInputHandler.java

    r24713 r24956  
    3131import org.openstreetmap.josm.actions.JosmAction;
    3232import org.openstreetmap.josm.data.osm.Node;
     33import org.openstreetmap.josm.gui.tagging.ac.AutoCompletionListItem;
    3334
    3435/**
     
    389390            return null;
    390391        } else {
    391             String name = selected.toString();
     392            String name;
     393            if (selected instanceof AutoCompletionListItem)
     394            {
     395               name = ((AutoCompletionListItem)selected).getValue();
     396            }
     397            else
     398            {
     399               name = selected.toString();
     400            }
     401
    392402            if (name.length() == 0) {
    393403                return null;
Note: See TracChangeset for help on using the changeset viewer.