mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 06:58:32 +02:00
Keep accuracy handles from throwing errors
This commit is contained in:
@@ -25,8 +25,10 @@ iD.Map = function() {
|
||||
|
||||
if (!dragging) {
|
||||
if (entity.accuracy) {
|
||||
var way = history.graph().entity(entity.way);
|
||||
history.perform(iD.actions.AddWayNode(way, iD.Node(entity), entity.index));
|
||||
var way = history.graph().entity(entity.way),
|
||||
index = entity.index;
|
||||
entity = iD.Node(entity);
|
||||
history.perform(iD.actions.AddWayNode(way, entity, index));
|
||||
}
|
||||
|
||||
dragging = iD.util.trueObj([entity.id].concat(
|
||||
|
||||
Reference in New Issue
Block a user