Ignore:
Timestamp:
2019-05-05T20:27:25+02:00 (6 years ago)
Author:
donvip
Message:

fix #josm17529 - fix shapefile reading regression (patch by openbrian)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReader.java

    r34911 r34997  
    155155                Geometry g = gc.getGeometryN(i);
    156156                if (g instanceof Polygon) {
     157                    // TODO: Split this section between Polygon and MultiPolygon.
    157158                    Relation r = (Relation) op;
    158159                    Polygon p = (Polygon) g;
     
    170171                        }
    171172                    }
     173                    op = r != null ? r : w;
    172174                } else if (g instanceof LineString) {
    173175                    op = createOrGetWay((LineString) g);
Note: See TracChangeset for help on using the changeset viewer.