From 4294ed4561e0f13394fbf705711384be56b7d401 Mon Sep 17 00:00:00 2001 From: Adam Solove Date: Mon, 9 Dec 2013 20:16:31 -0500 Subject: [PATCH] Fix midpoint missing after undoing split. (#2040) --- js/id/renderer/map.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/id/renderer/map.js b/js/id/renderer/map.js index 8c12a2f52..8a30ea527 100644 --- a/js/id/renderer/map.js +++ b/js/id/renderer/map.js @@ -119,6 +119,13 @@ iD.Map = function(context) { } return true; + } else if (d.type === 'node') { + // if a node was deleted, only the way will be in the diff + // so we should redraw midpoints for all nodes in that way + var parentWays = graph.parentWays({ id: d.id }); + if (parentWays.length > 0 && parentWays[0].id in complete) return true; + + return d.id in complete; } else { return d.id in complete; }