Changeset 16227 in josm


Ignore:
Timestamp:
2020-04-04T14:09:30+02:00 (4 years ago)
Author:
GerdP
Message:

fix #19030: Validator layer is not refreshed

  • call ValidatorLayer::invalidate also when no errors are found so that a previously found error is no longer rendered
File:
1 edited

Legend:

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

    r16091 r16227  
    143143                map.validatorDialog.unfurlDialog();
    144144                map.validatorDialog.tree.setErrors(errors);
     145                //FIXME: nicer way to find / invalidate the corresponding error layer
     146                MainApplication.getLayerManager().getLayersOfType(ValidatorLayer.class).forEach(ValidatorLayer::invalidate);
    145147                if (!errors.isEmpty()) {
    146                     //FIXME: nicer way to find / invalidate the corresponding error layer
    147148                    OsmValidator.initializeErrorLayer();
    148                     MainApplication.getLayerManager().getLayersOfType(ValidatorLayer.class).forEach(ValidatorLayer::invalidate);
    149149                }
    150150            });
Note: See TracChangeset for help on using the changeset viewer.