Recalculate lengths when extending / shortening ways - allows names to update position
authorAndy Allan <gravitystorm@gmail.com>
Wed, 1 Sep 2010 13:39:38 +0000 (13:39 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 1 Sep 2010 13:39:38 +0000 (13:39 +0000)
net/systemeD/halcyon/WayUI.as

index 2bf9a95fd797c53590558b49369100b49c87f629..1f1134e59fc785990d5ca7785c684eb05134af0a 100755 (executable)
@@ -47,6 +47,7 @@ package net.systemeD.halcyon {
                
                private function wayNodeAdded(event:WayNodeEvent):void {
                    event.node.addEventListener(Connection.NODE_MOVED, nodeMoved);
+            recalculate();
                    redraw();
                        redrawMultis();
                }
@@ -58,6 +59,7 @@ package net.systemeD.halcyon {
                        if (paint.nodeuis[event.node.id]) {
                                paint.nodeuis[event.node.id].redraw();
                        }
+            recalculate();
                    redraw();
                        redrawMultis();
                }