Changeset 13893 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2018-06-04T21:09:00+02:00 (6 years ago)
Author:
Don-vip
Message:

fix #16355 - Ignored validation findings reappear on upload (patch by bhatchl)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/upload/ValidateUploadHook.java

    r12649 r13893  
    7474            }
    7575        }
    76         OsmDataLayer editLayer = MainApplication.getLayerManager().getEditLayer();
    77         if (editLayer != null) {
    78             editLayer.validationErrors.clear();
    79             editLayer.validationErrors.addAll(errors);
    80         }
    81         MapFrame map = MainApplication.getMap();
    82         if (map != null) {
    83             map.validatorDialog.tree.setErrors(errors);
    84         }
    85         if (errors.isEmpty())
    86             return true;
    8776
    8877        if (ValidatorPrefHelper.PREF_USE_IGNORE.get()) {
     
    10594                return true;
    10695        }
     96
     97        OsmDataLayer editLayer = MainApplication.getLayerManager().getEditLayer();
     98        if (editLayer != null) {
     99            editLayer.validationErrors.clear();
     100            editLayer.validationErrors.addAll(errors);
     101        }
     102        MapFrame map = MainApplication.getMap();
     103        if (map != null) {
     104            map.validatorDialog.tree.setErrors(errors);
     105        }
     106        if (errors.isEmpty())
     107            return true;
     108
    107109        return displayErrorScreen(errors);
    108110    }
Note: See TracChangeset for help on using the changeset viewer.