Ignore:
Timestamp:
2020-10-29T00:14:21+01:00 (4 years ago)
Author:
simon04
Message:

EditLevel0LAction: move nodes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/comfort0/src/net/simon04/comfort0/EditLevel0LAction.java

    r35627 r35628  
    2222import org.openstreetmap.josm.command.ChangePropertyCommand;
    2323import org.openstreetmap.josm.command.Command;
     24import org.openstreetmap.josm.command.MoveCommand;
    2425import org.openstreetmap.josm.command.SequenceCommand;
    2526import org.openstreetmap.josm.data.UndoRedoHandler;
    2627import org.openstreetmap.josm.data.osm.DataSet;
     28import org.openstreetmap.josm.data.osm.Node;
    2729import org.openstreetmap.josm.data.osm.OsmPrimitive;
    2830import org.openstreetmap.josm.data.osm.PrimitiveData;
     
    140142                commands.add(command);
    141143            }
     144
     145            if (fromDataSet instanceof Node && !Objects.equals(((Node) fromDataSet).getCoor(), ((Node) newInstance).getCoor())) {
     146                final MoveCommand command = new MoveCommand(((Node) fromDataSet), ((Node) newInstance).getCoor());
     147                commands.add(command);
     148            }
    142149        }
    143150        if (commands.isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.