Reverse Way direction
[potlatch2.git] / net / systemeD / potlatch2 / Toolbox.as
index a1252de1e358739b852fdf2e3c9a5ab2a2002ffd..485c71694273fe4e8a886a1ff7dfb51fd38d658f 100644 (file)
@@ -64,6 +64,12 @@ package net.systemeD.potlatch2 {
                                controller.setState(new NoSelection());
                        }
                }
+        
+        public function doReverseDirection():void {
+            if (entity is Way) { 
+                Way(entity).reverseNodes(MainUndoStack.getGlobalStack().addAction);
+            }
+        }
 
                public function doQuadrilateralise():void {
                        if (entity is Way) {