Changeset 16134 in josm


Ignore:
Timestamp:
2020-03-15T17:00:41+01:00 (2 months ago)
Author:
GerdP
Message:

see #18928: prevent possible endless loop in Multipolygon.joinWays()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/relations/Multipolygon.java

    r16119 r16134  
    599599                for (int i = 0; i < joinArray.length && left != 0; ++i) {
    600600                    Way c = joinArray[i];
    601                     if (c != null && !c.isEmpty()) {
     601                    if (c != null && c.isEmpty()) {
     602                        joinArray[i] = null;
     603                        left--;
     604                    } else if (c != null && !c.isEmpty()) {
    602605                        if (nodes == null) {
    603606                            // new ring
Note: See TracChangeset for help on using the changeset viewer.