fix junction nodes when deleting ways
authorRichard Fairhurst <richard@systemed.net>
Sat, 1 May 2010 09:51:17 +0000 (09:51 +0000)
committerRichard Fairhurst <richard@systemed.net>
Sat, 1 May 2010 09:51:17 +0000 (09:51 +0000)
TODO.txt
net/systemeD/halcyon/WayUI.as

index 1877fb93f9c80ccb9b738d83ef55930a3d30e34d..0dd5cf48955c42cc5302a9119a5bf45e1499926d 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
@@ -15,7 +15,6 @@ Potlatch 2: main outstanding issues
 == Core geometry ==
 
 * Undo/redo: split, draw
-* Deleting a way with junction nodes doesn't redraw them
 
 
 == Vector background layers ==
index d6887d813339abbee3dfa59f69d17a29d2a35f97..1331814a0ecd1c6d02b3352087edc40e75b0e35a 100755 (executable)
@@ -74,6 +74,7 @@ package net.systemeD.halcyon {
                    
                private function wayNodeRemoved(event:WayNodeEvent):void {
                    event.node.removeEventListener(Connection.NODE_MOVED, nodeMoved);
+                       paint.nodeuis[event.node.id].redraw();
                    redraw();
                }
                    
@@ -150,9 +151,11 @@ package net.systemeD.halcyon {
                // Redraw
 
                override public function doRedraw(sl:StyleList):Boolean {
+Globals.vars.root.addDebug("redrawing "+way.id);
                        removeSprites();
                        if (way.length==0) { return false; }
                        if (!paint.ready) { return false; }
+Globals.vars.root.addDebug("continuing redraw");
 
             // Copy tags object, and add states
             var tags:Object = way.getTagsCopy();