Add way extending by clicking on first/last node
[potlatch2.git] / net / systemeD / potlatch2 / controller / NoSelection.as
index d55103b8fcfe7b8589102025dc78566e0213cff5..e2c8bca11043d385184095e7c070e2f4c7861672 100644 (file)
@@ -27,7 +27,7 @@ package net.systemeD.potlatch2.controller {
                                        controller.map.coord2lat(event.localY),
                                        controller.map.coord2lon(event.localX));
                                var way:Way = controller.connection.createWay({}, [startNode]);
-                               return new DrawWay(way, true);
+                               return new DrawWay(way, true, false);
                        } else if ( event.type == MouseEvent.MOUSE_OVER ) {
                                controller.map.setHighlight(focus, { hover: true });
                        } else if ( event.type == MouseEvent.MOUSE_OUT ) {