Prevent single-node ways from being created by undo.
[potlatch2.git] / net / systemeD / potlatch2 / controller / NoSelection.as
index 5c5072d2242f0fee477dc45f6368d5a89f00e279..b780bd25be499df22a86dc93429decf12204aeee 100644 (file)
@@ -25,6 +25,7 @@ package net.systemeD.potlatch2.controller {
 
                        if (event.type==MouseEvent.MOUSE_UP && (focus==null || (paint && paint.isBackground)) && map.dragstate!=map.DRAGGING) {
                                map.dragstate=map.NOT_DRAGGING;
+                               // ** FIXME: BeginWayAction ought to be a discrete class
                                var undo:CompositeUndoableAction = new BeginWayAction();
                                var conn:Connection = layer.connection;
                                var startNode:Node = conn.createNode(