Fix undo right after drawing line or area

This commit is contained in:
Ansis Brammanis
2013-01-16 12:43:29 -05:00
parent 87c341d7e0
commit a9de2500aa
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ iD.modes.DrawArea = function(wayId) {
if (datum.id === tailId || datum.id === headId) {
if (way.nodes.length > 3) {
history.replace(iD.actions.DeleteNode(node.id));
history.undo();
controller.enter(iD.modes.Select(way));
} else {
// Areas with less than 3 nodes gets deleted

View File

@@ -57,7 +57,7 @@ iD.modes.DrawLine = function(wayId, direction) {
} else if (datum.id === headId) {
// finish the way
history.replace(iD.actions.DeleteNode(node.id));
history.undo();
controller.enter(iD.modes.Select(way));