]> git.openstreetmap.org Git - potlatch2.git/blobdiff - net/systemeD/potlatch2/Toolbox.as
add 'split' to toolbox
[potlatch2.git] / net / systemeD / potlatch2 / Toolbox.as
index 485c71694273fe4e8a886a1ff7dfb51fd38d658f..94232bdf406b2e9cb09f3a61b9f9db603343057b 100644 (file)
@@ -15,7 +15,6 @@ package net.systemeD.potlatch2 {
                ** Should be automatically positioned at bottom-right of canvas on init
                ** Should float above tagViewer, not beneath it
                ** Icons should be disabled depending on what's selected (setEntity can do this)
-               ** Straighten, circularise, reverse way direction, parallelise
                ** Remove annoying Illustrator cruft from SVG icons!
 
        */
@@ -88,6 +87,12 @@ package net.systemeD.potlatch2 {
                                Circularise.circularise(Way(entity),controller.map);
                        }
                }
+               
+               public function doSplit():void {
+                       if (entity is Node && controller.state is SelectedWayNode) {
+                               controller.setState(SelectedWayNode(controller.state).splitWay());
+                       }
+               }
 
        }
 }