diff --git a/js/id/behavior/draw_way.js b/js/id/behavior/draw_way.js index eca3cc4b7..bc7d1736c 100644 --- a/js/id/behavior/draw_way.js +++ b/js/id/behavior/draw_way.js @@ -11,7 +11,7 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) { start = iD.Node({loc: context.graph().entity(way.nodes[startIndex]).loc}), end = iD.Node({loc: context.map().mouseCoordinates()}), segment = iD.Way({ - nodes: [start.id, end.id], + nodes: typeof index === 'undefined' ? [start.id, end.id] : [end.id, start.id], tags: _.clone(way.tags) });