Changeset 23971 in osm


Ignore:
Timestamp:
2010-10-31T19:54:13+01:00 (14 years ago)
Author:
oliverw
Message:

Bugfix: Tags could not be added, only changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/FixAddresses/src/org/openstreetmap/josm/plugins/fixAddresses/NodeEntityBase.java

    r23970 r23971  
    146146                if (StringUtils.isNullOrEmpty(tag)) return;
    147147               
    148                 if (osmObject != null && osmObject.hasKey(tag)) {
    149                         fireCommandIssued(new ChangePropertyCommand(osmObject, tag, newValue));
    150                         fireEntityChanged(this);
     148                if (osmObject != null) {
     149                        if ((osmObject.hasKey(tag) && newValue == null) || newValue != null) {                 
     150                                fireCommandIssued(new ChangePropertyCommand(osmObject, tag, newValue));
     151                                fireEntityChanged(this);
     152                        }
    151153                }
    152154        }
Note: See TracChangeset for help on using the changeset viewer.