Trac #4378 - creating one node ways
authorEd Loach <ed@loach.me.uk>
Thu, 1 Nov 2012 19:39:19 +0000 (19:39 +0000)
committerEd Loach <ed@loach.me.uk>
Thu, 1 Nov 2012 19:39:19 +0000 (19:39 +0000)
This change treats 1 node ways created by deleting a node from a way as
deleted ways. Tests that I've done suggest this works, including for
undo and redo, but would like someone else to see whether it messes
something else up that I've missed.

net/systemeD/halcyon/connection/actions/RemoveNodeFromWayAction.as

index cd3007b..53a1ae9 100644 (file)
@@ -32,7 +32,7 @@ package net.systemeD.halcyon.connection.actions {
                        
                        if ( nodeRemovedFrom.length > 0 ) {
                            node.removeParent(entity);
-                           entity.deleted = nodeList.length == 0;
+                           entity.deleted = nodeList.length <= 1;
                            markDirty();
                            return SUCCESS;
                        }