Changeset 35 in josm for src/org/openstreetmap/josm/command


Ignore:
Timestamp:
2005-12-28T01:29:01+01:00 (20 years ago)
Author:
imi
Message:
  • fixed bug in UTM
  • upload of nodes and segments
  • fixed bugs in display the selection
Location:
src/org/openstreetmap/josm/command
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/command/AddCommand.java

    r31 r35  
    66import org.openstreetmap.josm.data.osm.OsmPrimitive;
    77import org.openstreetmap.josm.data.osm.visitor.AddVisitor;
    8 import org.openstreetmap.josm.data.osm.visitor.DeleteVisitor;
    98
    109/**
     
    3938
    4039        public void undoCommand() {
    41                 osm.visit(new DeleteVisitor(ds));
     40                osm.setDeleted(true);
    4241        }
    4342
  • src/org/openstreetmap/josm/command/ChangeKeyValueCommand.java

    r33 r35  
    5555                for (OsmPrimitive osm : objects) {
    5656                        oldProperties.add(osm.keys == null ? null : new HashMap<Key, String>(osm.keys));
    57                         oldModified.add(osm.modified);
    58                         osm.modified = true;
     57                        oldModified.add(osm.modifiedProperties);
     58                        osm.modifiedProperties = true;
    5959                }
    6060
     
    8181                for (OsmPrimitive osm : objects) {
    8282                        osm.keys = it.next();
    83                         osm.modified = itMod.next();
     83                        osm.modifiedProperties = itMod.next();
    8484                }
    8585        }
  • src/org/openstreetmap/josm/command/DeleteCommand.java

    r31 r35  
    88import org.openstreetmap.josm.data.osm.visitor.AddVisitor;
    99import org.openstreetmap.josm.data.osm.visitor.CollectBackReferencesVisitor;
    10 import org.openstreetmap.josm.data.osm.visitor.DeleteVisitor;
    1110import org.openstreetmap.josm.data.osm.visitor.Visitor;
    1211
     
    3534       
    3635        public void executeCommand() {
    37                 Visitor v = new DeleteVisitor(ds);
    3836                for (OsmPrimitive osm : data)
    39                         osm.visit(v);
     37                        osm.setDeleted(true);
    4038        }
    4139
Note: See TracChangeset for help on using the changeset viewer.