Ignore:
Timestamp:
2020-10-24T11:54:52+02:00 (3 years ago)
Author:
GerdP
Message:

see #19956 Double check if error still exists before executing autofix

  • revert r17252. There are more tests that don't work with this. Have to double check my patch first ;)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

    r17252 r17261  
    628628            if (error.isFixable()) {
    629629                if (error.getPrimitives().stream().noneMatch(p -> p.isDeleted() || p.getDataSet() == null)) {
    630                     TestError checked = error.doubleCheck();
    631                     if (checked != null) {
    632                         final Command fixCommand = checked.getFix();
    633                         if (fixCommand != null) {
    634                             SwingUtilities.invokeAndWait(fixCommand::executeCommand);
    635                             fixCommands.add(fixCommand);
    636                         }
     630                    final Command fixCommand = error.getFix();
     631                    if (fixCommand != null) {
     632                        SwingUtilities.invokeAndWait(fixCommand::executeCommand);
     633                        fixCommands.add(fixCommand);
    637634                    }
    638635                }
Note: See TracChangeset for help on using the changeset viewer.