Ignore:
Timestamp:
2018-05-20T03:59:10+02:00 (6 years ago)
Author:
donvip
Message:

restore changes required for latest JOSM

Location:
applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant
Files:
2 edited

Legend:

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

    r34203 r34204  
    8686            monitor.subTask(tr("Updating map ..."));
    8787            SwingUtilities.invokeAndWait(() -> {
    88                 MainApplication.undoRedo.afterAdd();
     88                MainApplication.undoRedo.afterAdd(null);
    8989                MainApplication.getMap().repaint();
    9090            });
  • applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/SegmentChecker.java

    r34203 r34204  
    942942        ChangeCommand changeCommand = new ChangeCommand(originalRelation, modifiedRelation);
    943943        MainApplication.undoRedo.addNoRedraw(changeCommand);
    944         MainApplication.undoRedo.afterAdd();
     944        MainApplication.undoRedo.afterAdd(changeCommand);
    945945        PTRouteSegment wrongSegment = wrongSegments.get(testError);
    946946        wrongSegments.remove(testError);
     
    10771077                ChangeCommand changeCommand = new ChangeCommand(originalRelation, modifiedRelation);
    10781078                MainApplication.undoRedo.addNoRedraw(changeCommand);
    1079                 MainApplication.undoRedo.afterAdd();
     1079                MainApplication.undoRedo.afterAdd(changeCommand);
    10801080                wrongSegmentsToRemove.add(testError);
    10811081            }
Note: See TracChangeset for help on using the changeset viewer.