Ignore:
Timestamp:
2020-04-09T17:37:48+02:00 (4 years ago)
Author:
GerdP
Message:

fix #19053: Validator does not find overlapping buildings anymore
Ignore list handling added an invalid entry for key "3000" so that all issues found by the MapCSSTagChecker were ignored

  • remove invalid entry when loading the ignore List
  • disable the Ignore button when it would produce the invalid entry
File:
1 edited

Legend:

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

    r16187 r16247  
    411411        lastSelectedNode = node;
    412412        if (node != null) {
     413            final Set<String> codes = new HashSet<>();
    413414            ValidatorTreePanel.visitTestErrors(node, error -> {
     415                codes.add(error.getIgnoreSubGroup()); // see #19053
    414416                error.setSelected(true);
    415417
     
    423425            selectAction.setEnabled(true);
    424426            if (ignoreAction != null) {
    425                 ignoreAction.setEnabled(!(node.getUserObject() instanceof Severity));
     427                ignoreAction.setEnabled(!(node.getUserObject() instanceof Severity) && codes.size() <= 1);
    426428            }
    427429        }
Note: See TracChangeset for help on using the changeset viewer.