]> git.openstreetmap.org Git - potlatch2.git/blobdiff - net/systemeD/potlatch2/controller/DrawWay.as
remove node from this way only, and some fixes
[potlatch2.git] / net / systemeD / potlatch2 / controller / DrawWay.as
index 676f608d87dc0945faa8d3fc9e86227ecf34cf92..1772146b76312ce58b2d0c43be36844858729dda 100644 (file)
@@ -106,7 +106,7 @@ package net.systemeD.potlatch2.controller {
                                // delete controller.map.ways[selectedWay.id];
                                return new NoSelection();
                        } else if ( leaveNodeSelected ) {
                                // 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);
                        }
                        } else {
                            return new SelectedWay(selectedWay);
                        }