Do not continue areas. Fixes #331

This commit is contained in:
Tom MacWright
2013-01-08 13:48:18 -05:00
parent 4d3de28891
commit e88508a123

View File

@@ -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);