Ignore:
Timestamp:
2010-06-19T14:23:54+02:00 (11 years ago)
Author:
stoecker
Message:

#close #5135 - allow undeleting without recreating object - patch by Upliner

Location:
trunk/src/org/openstreetmap/josm/io
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/DiffResultProcessor.java

    r3083 r3336  
    125125                if (!p.isDeleted()) {
    126126                    p.setOsmId(entry.new_id, entry.new_version);
     127                    p.setVisible(true);
    127128                }
    128129                if (cs != null && !cs.isNew()) {
  • trunk/src/org/openstreetmap/josm/io/OsmApi.java

    r3212 r3336  
    275275            osm.setOsmId(osm.getId(), Integer.parseInt(ret.trim()));
    276276            osm.setChangesetId(getChangeset().getId());
     277            osm.setVisible(true);
    277278        } catch(NumberFormatException e) {
    278279            throw new OsmTransferException(tr("Unexpected format of new version of modified primitive ''{0}''. Got ''{1}''.", osm.getId(), ret));
  • trunk/src/org/openstreetmap/josm/io/OsmWriter.java

    r3321 r3336  
    9898
    9999    private boolean shouldWrite(OsmPrimitive osm) {
    100         return !osm.isNew() || !osm.isDeleted();
     100        return !osm.isNewOrUndeleted() || !osm.isDeleted();
    101101    }
    102102
Note: See TracChangeset for help on using the changeset viewer.