Changeset 33677 in osm for applications/editors/josm/plugins/utilsplugin2/src
- Timestamp:
- 2017-09-26T19:41:00+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/utilsplugin2/src/org/openstreetmap/josm/plugins/utilsplugin2/curves/CircleArcMaker.java
r33676 r33677 160 160 Node[] anchorNodes = {n1, n2, n3}; 161 161 //// "Fuse" the arc with all target ways 162 fuseArc( anchorNodes, arcNodes, targetWays, cmds);162 fuseArc(ds, anchorNodes, arcNodes, targetWays, cmds); 163 163 164 164 return cmds; 165 165 } 166 166 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) { 168 168 169 169 for (Way originalTw : targetWays) { … … 212 212 } 213 213 if (didChangeTw) 214 cmds.add(new ChangeCommand( originalTw, tw));214 cmds.add(new ChangeCommand(ds, originalTw, tw)); 215 215 } 216 216 } … … 242 242 double sUnder = (x1 - x2) * (y3 - y1) - (y2 - y1) * (x1 - x3); 243 243 244 assert (sUnder == 0);244 assert (sUnder != 0); 245 245 246 246 s /= sUnder;
Note:
See TracChangeset
for help on using the changeset viewer.