Changeset 18607 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2022-12-05T14:37:26+01:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/tagging/presets/TaggingPreset.java
r18574 r18607 445 445 } 446 446 447 if (selected.size() == 1 && USE_VALIDATOR.get()) { 447 if (selected.size() == 1 && Boolean.TRUE.equals(USE_VALIDATOR.get())) { 448 // Fail early -- validateAsync requires the primitive(s) to be part of a dataset. Failing later in validateAsync ''does not'' give us 449 // a usable stack trace. See #21829 for details. 450 selected.forEach(OsmPrimitive::checkDataset); 448 451 itemGuiSupport.addListener((source, key, newValue) -> 449 452 TaggingPresetValidation.validateAsync(selected.iterator().next(), validationLabel, getChangedTags()));
Note:
See TracChangeset
for help on using the changeset viewer.