Changeset 35177 in osm for applications/editors/josm


Ignore:
Timestamp:
2019-10-05T23:59:42+02:00 (5 years ago)
Author:
donvip
Message:

fix #josm13681 - make sure to consider only usable objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/selection/NodeWayUtils.java

    r34932 r35177  
    4141
    4242    private static <T extends OsmPrimitive> void filteredAdd(Collection<T> collection, T element) {
    43         if (!element.isDisabled()) {
     43        if (!element.isDisabled() && element.isUsable()) {
    4444            collection.add(element);
    4545        }
     
    147147
    148148    static int addWaysIntersectingWay(Collection<Way> ways, Way w, Set<Way> newWays) {
    149         Set<Way> excludeWays = new HashSet<Way>();
    150         return addWaysIntersectingWay(ways, w, newWays, excludeWays);
     149        return addWaysIntersectingWay(ways, w, newWays, new HashSet<>());
    151150    }
    152151
Note: See TracChangeset for help on using the changeset viewer.