This is not the bodge you are looking for
authorAndy Allan <gravitystorm@gmail.com>
Wed, 26 Jan 2011 12:06:15 +0000 (12:06 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 26 Jan 2011 12:06:15 +0000 (12:06 +0000)
TODO.txt
net/systemeD/potlatch2/Toolbox.mxml

index feda0c1..7772b82 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -70,7 +70,6 @@ Potlatch 2: main outstanding issues
 
 == Reverse Button ==
 * Doesn't look like a button
-* clockwise / anticlockwise are backwards
 
 Requested enhancements
 ----------------------
index ab1c6d8..135629a 100644 (file)
                 var w:Way = Way(controller.state.firstSelected);
                 if (w) { // not entirely sure why this protection is necessary, but it appears so
                     if (w.isArea()) {
-                        trace("clockwise?: "+w.clockwise);
-                        w.clockwise? rotateButtonStack.selectedChild = clockwiseBox : rotateButtonStack.selectedChild = antiClockwiseBox;
+                        // so Way.clockwise appears to give wrong results. Patches welcome, I guess, but for now...
+                        w.clockwise? rotateButtonStack.selectedChild = antiClockwiseBox : rotateButtonStack.selectedChild = clockwiseBox;
                     } else {
                         rotateButtonStack.selectedChild = arrowBoxWrapper;
                         // reset and reposition back to the starting point relative to its parent