Ignore:
Timestamp:
2009-07-21T20:17:36+02:00 (15 years ago)
Author:
jttt
Message:

Make it work without Main.ds

Location:
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGBuilding.java

    r16581 r16619  
    132132        // check if the new way or its nodes is already in OSM layer
    133133        for (Node n : svgDataSet.nodes) {
    134             Node nearestNewNode = checkNearestNode(n, Main.ds.nodes);
     134            Node nearestNewNode = checkNearestNode(n, Main.main.getCurrentDataSet().nodes);
    135135            if (nearestNewNode != n) {
    136136                // replace the SVG node by the OSM node
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/DownloadSVGTask.java

    r16581 r16619  
    123123        // simplify the way
    124124        double threshold = Double.parseDouble(Main.pref.get("cadastrewms.simplify-way-boundary", "1.0"));
    125         new SimplifyWay().simplifyWay(wayToAdd, Main.ds, threshold);
     125        new SimplifyWay().simplifyWay(wayToAdd, Main.main.getCurrentDataSet(), threshold);
    126126
    127127        cmds.add(new AddCommand(wayToAdd));
Note: See TracChangeset for help on using the changeset viewer.