Ticket #19053: 19053.2.patch

File 19053.2.patch, 1.7 KB (added by GerdP, 6 years ago)
  • src/org/openstreetmap/josm/data/validation/TestError.java

     
    339339     */
    340340    public String getIgnoreSubGroup() {
    341341        String ignorestring = getIgnoreGroup();
    342         if (descriptionEn != null) {
     342        if (descriptionEn != null && code != 3000) {
    343343            ignorestring += '_' + descriptionEn;
    344344        }
    345345        return ignorestring;
     
    351351     * @see TestError#getIgnoreSubGroup()
    352352     */
    353353    public String getIgnoreGroup() {
     354        if (code == 3000) {
     355            // see #19053
     356            return "3000_" + (description == null ? message : description);
     357        }
    354358        return Integer.toString(code);
    355359    }
    356360
  • src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java

     
    412412        if (node != null) {
    413413            final Set<String> codes = new HashSet<>();
    414414            ValidatorTreePanel.visitTestErrors(node, error -> {
    415                 codes.add(error.getIgnoreSubGroup()); // see #19053
     415                if (error.getCode() == 3000) {
     416                    // see #19053
     417                    codes.add(error.getIgnoreSubGroup());
     418                }
    416419                error.setSelected(true);
    417420
    418421                hasFixes.set(hasFixes.get() || error.isFixable());