Changeset 7295 in josm for trunk/src


Ignore:
Timestamp:
2014-07-07T23:13:45+02:00 (5 years ago)
Author:
Don-vip
Message:

see #10244 - ignore empty ways in Multipolygon.joinWays

File:
1 edited

Legend:

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

    r7005 r7295  
    411411    }
    412412
    413     public static Collection<JoinedWay> joinWays(Collection<Way> waysToJoin)
    414     {
     413    public static Collection<JoinedWay> joinWays(Collection<Way> waysToJoin) {
    415414        final Collection<JoinedWay> result = new ArrayList<>();
    416415        final Way[] joinArray = waysToJoin.toArray(new Way[waysToJoin.size()]);
     
    427426                    if (joinArray[i] != null) {
    428427                        Way c = joinArray[i];
     428                        if (c.getNodesCount() == 0) {
     429                            continue;
     430                        }
    429431                        if (w == null) {
    430432                            w = c;
Note: See TracChangeset for help on using the changeset viewer.