From 38ecfc949ccadfd223b5da867527fd7ba547bb86 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Thu, 6 Dec 2012 16:17:09 -0500 Subject: [PATCH] Get rid of ghost node in connections. Fixes #213 --- js/id/modes/draw_road.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/id/modes/draw_road.js b/js/id/modes/draw_road.js index 0272aced6..3400224d8 100644 --- a/js/id/modes/draw_road.js +++ b/js/id/modes/draw_road.js @@ -52,6 +52,7 @@ iD.modes.DrawRoad = function(way_id, direction) { return finish(iD.modes.Select(way)); } else { // connect a way to an existing way + mode.history.replace(iD.actions.DeleteNode(node)); mode.history.replace(iD.actions.AddWayNode(way, datum, index)); } } else if (datum.type === 'way') {