Fix unknown entity error on merge (fixes #1618)

This commit is contained in:
John Firebaugh
2013-06-28 15:46:10 -04:00
parent c4cb8729eb
commit 8feb53358c
+3 -2
View File
@@ -15,8 +15,9 @@ iD.operations.Merge = function(selectedIDs, context) {
action = mergePolygon;
}
var difference = context.perform(action, annotation);
context.enter(iD.modes.Select(context, difference.extantIDs()));
context.perform(action, annotation);
context.enter(iD.modes.Select(context, selectedIDs.filter(function(id) { return context.hasEntity(id); }))
.suppressMenu(true));
};
operation.available = function() {