From 64a11f4cbfa30d291a1e7ced620880d84060e82b Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Fri, 22 Dec 2017 15:08:05 -0500 Subject: [PATCH] Restore ability to extend line at beginning or end --- modules/behavior/draw_way.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/behavior/draw_way.js b/modules/behavior/draw_way.js index 8f138c45a..68e56c182 100644 --- a/modules/behavior/draw_way.js +++ b/modules/behavior/draw_way.js @@ -131,7 +131,7 @@ export function behaviorDrawWay(context, wayId, index, mode, startGraph) { return function(graph) { return graph .replace(end) - .replace(origWay.addNode(end.id)); + .replace(origWay.addNode(end.id, index)); }; } @@ -139,7 +139,7 @@ export function behaviorDrawWay(context, wayId, index, mode, startGraph) { function _actionReplaceDrawNode(newNode) { return function(graph) { return graph - .replace(origWay.addNode(newNode.id)) + .replace(origWay.addNode(newNode.id, index)) .remove(end); }; }