Ignore:
Timestamp:
2019-03-06T22:18:45+01:00 (6 years ago)
Author:
donvip
Message:

see #josm13843 - fix regression (patch by openbrian)

Location:
applications/editors/josm/plugins/opendata
Files:
2 edited
1 moved

Legend:

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

    r34907 r34911  
    4444import org.openstreetmap.josm.data.osm.OsmPrimitive;
    4545import org.openstreetmap.josm.data.osm.Relation;
     46import org.openstreetmap.josm.data.osm.Way;
    4647import org.openstreetmap.josm.gui.MainApplication;
    4748import org.openstreetmap.josm.gui.progress.ProgressMonitor;
     
    162163                        r = createMultipolygon();
    163164                    }
     165                    Way w = createOrGetWay(p.getExteriorRing());
    164166                    if (r != null) {
    165                         addWayToMp(r, "outer", createOrGetWay(p.getExteriorRing()));
     167                        addWayToMp(r, "outer", w);
    166168                        for (int j = 0; j < p.getNumInteriorRing(); j++) {
    167169                            addWayToMp(r, "inner", createOrGetWay(p.getInteriorRingN(j)));
  • applications/editors/josm/plugins/opendata/test/unit/org/openstreetmap/josm/plugins/opendata/core/io/geographic/ShpReaderTest.java

    r34898 r34911  
    9090
    9191    /**
    92      * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/12843">#12843</a>
     92     * Non-regression test for ticket <a href="https://josm.openstreetmap.de/ticket/13843">#13843</a>
    9393     * @throws Exception if an error occurs during reading
    9494     */
    9595    @Test
    96     public void testTicket12843() throws Exception {
    97         File file = new File(TestUtils.getRegressionDataFile(12843, "test.shp"));
     96    public void testTicket13843() throws Exception {
     97        File file = new File(TestUtils.getRegressionDataFile(13843, "test.shp"));
    9898        try (InputStream is = new FileInputStream(file)) {
    9999            Collection<Way> ways = ShpReader.parseDataSet(is, file, null, null).getWays();
Note: See TracChangeset for help on using the changeset viewer.