Ignore:
Timestamp:
2018-05-30T11:49:22+02:00 (6 years ago)
Author:
biswesh
Message:

Change undo redo action in double split map mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/actions/DoubleSplitAction.java

    r34227 r34234  
    560560                        }
    561561                        if (type != 2) {
    562                                 selectedWay.get(0).setKeys(newKeys1);
     562//                              selectedWay.get(0).setKeys(newKeys1);
     563                                MainApplication.undoRedo.add(new ChangePropertyCommand(Collections.singleton(selectedWay.get(0)), newKeys1));
    563564                        } else {
    564565                                MainApplication.undoRedo.add(new ChangePropertyCommand(Collections.singleton(selectedWay.get(0)), newKeys1));
     
    592593                                }
    593594                                if (type != 2) {
    594                                         selectedWay.get(1).setKeys(newKeys2);
     595//                                      selectedWay.get(1).setKeys(newKeys2);
     596                                        MainApplication.undoRedo.add(new ChangePropertyCommand(Collections.singleton(selectedWay.get(0)), newKeys2));
    595597                                } else {
    596598                                        MainApplication.undoRedo.add(new ChangePropertyCommand(Collections.singleton(selectedWay.get(0)), newKeys2));
Note: See TracChangeset for help on using the changeset viewer.