fix circularise undo action (still doesn't undo adding the nodes)
authorDave Stubbs <osm@randomjunk.co.uk>
Wed, 21 Apr 2010 09:58:31 +0000 (09:58 +0000)
committerDave Stubbs <osm@randomjunk.co.uk>
Wed, 21 Apr 2010 09:58:31 +0000 (09:58 +0000)
net/systemeD/potlatch2/tools/Circularise.as

index 38a83f3991473c0e68f3697b1fa137cd90d79dc2..2e6150b953302cd484f44d7cc5f57008da374118 100644 (file)
@@ -41,7 +41,7 @@ package net.systemeD.potlatch2.tools {
                        d=d/way.length;
                        
 
                        d=d/way.length;
                        
 
-                       var action:CompositeUndoableAction = new CompositeUndoableAction("Straighten");
+                       var action:CompositeUndoableAction = new CompositeUndoableAction("Circularise");
 
                        // Move each node
                        for (i=0; i<way.length-1; i++) {
 
                        // Move each node
                        for (i=0; i<way.length-1; i++) {
@@ -86,6 +86,8 @@ package net.systemeD.potlatch2.tools {
                                }
                                i++;
                        }
                                }
                                i++;
                        }
+
+                       MainUndoStack.getGlobalStack().addAction(action);
                }
        }
 }
                }
        }
 }