highlight nodes in mouseover
[potlatch2.git] / net / systemeD / potlatch2 / controller / SelectedWayNode.as
index 17be1e8ef4ef359736839c818853700fc7d3c1a7..114c913be52b359bc262f1b9e1e4c353cfe50527 100644 (file)
@@ -40,14 +40,14 @@ package net.systemeD.potlatch2.controller {
             if ( event.type == MouseEvent.MOUSE_UP ) {
                                if ( entity is Node && event.shiftKey ) {
                                        // start new way
-                    var way:Way = controller.connection.createWay({}, [entity, entity]);
+                    var way:Way = controller.connection.createWay({}, [entity]);
                     return new DrawWay(way, true);
                                } else if ( entity is Node ) {
                                        // select node within way
                                        return new SelectedWayNode(selectedWay,Node(entity));
                 } else if ( entity is Way ) {
                                        // select way
-                                       return new SelectedWay(selectedWay);
+                                       return new SelectedWay(Way(entity));
                 } else if ( focus == null && map.dragstate!=map.DRAGGING ) {
                     return new NoSelection();
                                }