Don't add the end node if you click on it again, slowly. Closes #3355
authorAndy Allan <gravitystorm@gmail.com>
Wed, 1 Dec 2010 11:32:00 +0000 (11:32 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 1 Dec 2010 11:32:00 +0000 (11:32 +0000)
net/systemeD/potlatch2/controller/DrawWay.as

index 5aaed85..21fe671 100644 (file)
@@ -67,6 +67,9 @@ package net.systemeD.potlatch2.controller {
                                                        // double-click at end of way
                                                        return stopDrawing();
                                                }
+                    } else if (entity==lastClick) {
+                        // clicked slowly on the end node - do nothing
+                        return this;
                                        } else {
                                                appendNode(entity as Node, MainUndoStack.getGlobalStack().addAction);
                                                if (focus is Way) {