X-Git-Url: https://git.openstreetmap.org/potlatch2.git/blobdiff_plain/4370a560fba5ca8f938d84fc7b68ce7f3148f98a..fcdddca621c2a741993600729e88b679e8dbe0b7:/net/systemeD/potlatch2/controller/DrawWay.as diff --git a/net/systemeD/potlatch2/controller/DrawWay.as b/net/systemeD/potlatch2/controller/DrawWay.as index 676f608d..1772146b 100644 --- a/net/systemeD/potlatch2/controller/DrawWay.as +++ b/net/systemeD/potlatch2/controller/DrawWay.as @@ -106,7 +106,7 @@ package net.systemeD.potlatch2.controller { // delete controller.map.ways[selectedWay.id]; return new NoSelection(); } else if ( leaveNodeSelected ) { - return new SelectedWayNode(selectedWay, selectedWay.getNode(editEnd ? selectedWay.length - 1 : 0)); + return new SelectedWayNode(selectedWay, editEnd ? selectedWay.length - 1 : 0); } else { return new SelectedWay(selectedWay); }