Changeset 16134 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-03-15T17:00:41+01:00 (5 years 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.