mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-15 05:30:35 +02:00
Restore ability to extend line at beginning or end
This commit is contained in:
@@ -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);
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user