Changeset 9268 in josm for trunk/src/org
- Timestamp:
- 2016-01-02T19:26:27+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/OsmPrimitive.java
r9267 r9268 1165 1165 tr("Cannot merge primitives with different ids. This id is {0}, the other is {1}", id, other.getId())); 1166 1166 1167 setKeys(other. getKeys());1167 setKeys(other.hasKeys() ? other.getKeys() : null); 1168 1168 timestamp = other.timestamp; 1169 1169 version = other.version; … … 1241 1241 public void load(PrimitiveData data) { 1242 1242 // Write lock is provided by subclasses 1243 setKeys(data. getKeys());1243 setKeys(data.hasKeys() ? data.getKeys() : null); 1244 1244 setRawTimestamp(data.getRawTimestamp()); 1245 1245 user = data.getUser(); … … 1263 1263 protected void saveCommonAttributes(PrimitiveData data) { 1264 1264 data.setId(id); 1265 data.setKeys( getKeys());1265 data.setKeys(hasKeys() ? getKeys() : null); 1266 1266 data.setRawTimestamp(getRawTimestamp()); 1267 1267 data.setUser(user);
Note:
See TracChangeset
for help on using the changeset viewer.