Correct arrow direction on drawn segment (fixes #2078)

This commit is contained in:
John Firebaugh
2014-01-02 17:36:23 -08:00
parent 532612a261
commit 4ce9bedb9c
+1 -1
View File
@@ -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)
});