From e88508a12323e080fd4fc5cead704da7b1797fca Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 8 Jan 2013 13:48:18 -0500 Subject: [PATCH] Do not continue areas. Fixes #331 --- js/id/modes/add_line.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/id/modes/add_line.js b/js/id/modes/add_line.js index 266dbe38a..4e3652d69 100644 --- a/js/id/modes/add_line.js +++ b/js/id/modes/add_line.js @@ -20,7 +20,7 @@ iD.modes.AddLine = function() { way = iD.Way({ tags: { highway: 'residential' } }), direction = 'forward'; - if (datum.type === 'node') { + if (datum.type === 'node' && datum.geometry() === 'line') { // continue an existing way var id = datum.id; var parents = history.graph().parentWays(id);