Changeset 18838 in josm


Ignore:
Timestamp:
2023-09-20T22:11:13+02:00 (12 months ago)
Author:
taylor.smock
Message:

Fix #23008: Improve PowerLines test performance (patch by gaben)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/tests/PowerLines.java

    r18675 r18838  
    629629     */
    630630    private static boolean concernsWaterArea(OsmPrimitive p) {
    631         return p.hasTag("water", "river", "lake") || p.hasKey("waterway") || p.hasTag("natural", "coastline");
     631        return (p.hasTag("water", "river", "lake") || p.hasKey("waterway") || p.hasTag("natural", "coastline")) && p.concernsArea();
    632632    }
    633633
Note: See TracChangeset for help on using the changeset viewer.