Ticket #19053: 19053.2.patch
File 19053.2.patch, 1.7 KB (added by , 4 years ago) |
---|
-
src/org/openstreetmap/josm/data/validation/TestError.java
339 339 */ 340 340 public String getIgnoreSubGroup() { 341 341 String ignorestring = getIgnoreGroup(); 342 if (descriptionEn != null ) {342 if (descriptionEn != null && code != 3000) { 343 343 ignorestring += '_' + descriptionEn; 344 344 } 345 345 return ignorestring; … … 351 351 * @see TestError#getIgnoreSubGroup() 352 352 */ 353 353 public String getIgnoreGroup() { 354 if (code == 3000) { 355 // see #19053 356 return "3000_" + (description == null ? message : description); 357 } 354 358 return Integer.toString(code); 355 359 } 356 360 -
src/org/openstreetmap/josm/gui/dialogs/ValidatorDialog.java
412 412 if (node != null) { 413 413 final Set<String> codes = new HashSet<>(); 414 414 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 } 416 419 error.setSelected(true); 417 420 418 421 hasFixes.set(hasFixes.get() || error.isFixable());