Changeset 35051 in osm for applications/editors/josm


Ignore:
Timestamp:
2019-07-07T23:11:30+02:00 (5 years ago)
Author:
donvip
Message:

fix #josm17884 - fix regression in last commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/measurement/src/org/openstreetmap/josm/plugins/measurement/MeasurementDialog.java

    r35047 r35051  
    304304
    305305    private boolean parentsContain(Way w) {
    306         return w.getReferrers().stream()
     306        return w.getReferrers(true).stream()
    307307                .anyMatch(ref -> ref instanceof Relation && relations != null && relations.contains(ref));
    308308    }
    309309
    310310    private boolean parentsContain(Node n) {
    311         return n.getReferrers().stream()
     311        return n.getReferrers(true).stream()
    312312                .anyMatch(ref
    313313                        -> (ref instanceof Way && ((ways != null && ways.contains(ref)) || parentsContain((Way) ref)))
Note: See TracChangeset for help on using the changeset viewer.