Ignore:
Timestamp:
2009-10-31T18:09:19+01:00 (15 years ago)
Author:
dhansen
Message:

Temporary kludge until we get proper reindexing in the dataset.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/validator/src/org/openstreetmap/josm/plugins/validator/tests/UnconnectedWays.java

    r18379 r18396  
    7474        this.ds = Main.main.getCurrentDataSet();
    7575        this.ds_area = ds.getDataSourceArea();
     76        // This is temporary until we get proper
     77        // reindexing in the dataset code.
     78        ArrayList<Node> ntmp = new ArrayList<Node>(ds.nodes);
     79        ds.nodes.clear();
     80        ds.nodes.addAll(ntmp);
     81        ArrayList<Way> wtmp = new ArrayList<Way>(ds.ways);
     82        ds.ways.clear();
     83        ds.ways.addAll(wtmp);
    7684    }
    7785
Note: See TracChangeset for help on using the changeset viewer.