Ignore:
Timestamp:
2017-09-26T19:41:00+02:00 (7 years ago)
Author:
donvip
Message:

fix #josm15363 - circle arc broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/curves/CircleArcMaker.java

    r33676 r33677  
    160160        Node[] anchorNodes = {n1, n2, n3};
    161161        //// "Fuse" the arc with all target ways
    162         fuseArc(anchorNodes, arcNodes, targetWays, cmds);
     162        fuseArc(ds, anchorNodes, arcNodes, targetWays, cmds);
    163163
    164164        return cmds;
    165165    }
    166166
    167     private static void fuseArc(Node[] anchorNodes, List<Node> arcNodes, Set<Way> targetWays, Collection<Command> cmds) {
     167    private static void fuseArc(DataSet ds, Node[] anchorNodes, List<Node> arcNodes, Set<Way> targetWays, Collection<Command> cmds) {
    168168
    169169        for (Way originalTw : targetWays) {
     
    212212            }
    213213            if (didChangeTw)
    214                 cmds.add(new ChangeCommand(originalTw, tw));
     214                cmds.add(new ChangeCommand(ds, originalTw, tw));
    215215        }
    216216    }
     
    242242        double sUnder = (x1 - x2) * (y3 - y1) - (y2 - y1) * (x1 - x3);
    243243
    244         assert (sUnder == 0);
     244        assert (sUnder != 0);
    245245
    246246        s /= sUnder;
Note: See TracChangeset for help on using the changeset viewer.