Fix midpoint missing after undoing split. (#2040)

This commit is contained in:
Adam Solove
2013-12-09 20:16:31 -05:00
parent 3205ecafea
commit 4294ed4561
+7
View File
@@ -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;
}