mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-20 15:34:49 +02:00
Fix midpoint missing after undoing split. (#2040)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user