Changeset 4103 in josm


Ignore:
Timestamp:
2011-05-30T09:42:08+02:00 (13 years ago)
Author:
bastiK
Message:

fixed #6395 - "Paste Tags" (Ctrl+Shift+V) now completely broken

Location:
trunk/src/org/openstreetmap/josm/data/osm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java

    r4100 r4103  
    466466    /**
    467467     * Sets the keys of this primitives to the key/value pairs in <code>keys</code>.
    468      * If <code>keys</code> is null removes all existing key/value pairs.
     468     * Old key/value pairs are removed.
     469     * If <code>keys</code> is null, clears existing key/value pairs.
    469470     *
    470471     * @param keys the key/value pairs to set. If null, removes all existing key/value pairs.
  • trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java

    r4100 r4103  
    10351035    protected void saveCommonAttributes(PrimitiveData data) {
    10361036        data.setId(id);
    1037         data.getKeys().clear();
    1038         data.getKeys().putAll(getKeys());
     1037        data.setKeys(getKeys());
    10391038        data.setTimestamp(getTimestamp());
    10401039        data.setUser(user);
Note: See TracChangeset for help on using the changeset viewer.