multipolygon bugfix
authorRichard Fairhurst <richard@systemed.net>
Sun, 13 Jun 2010 11:38:26 +0000 (11:38 +0000)
committerRichard Fairhurst <richard@systemed.net>
Sun, 13 Jun 2010 11:38:26 +0000 (11:38 +0000)
net/systemeD/halcyon/WayUI.as

index dec24870c4f848bdfbfb86c8918dac1828612730..959bfb4e02aa25826c7b4006661dad10f6ce3147 100755 (executable)
@@ -290,7 +290,7 @@ package net.systemeD.halcyon {
                private function solidLine(g:Graphics,w:Way):void {
             var node:Node = w.getNode(0);
                        g.moveTo(paint.map.lon2coord(node.lon), paint.map.latp2coord(node.latp));
                private function solidLine(g:Graphics,w:Way):void {
             var node:Node = w.getNode(0);
                        g.moveTo(paint.map.lon2coord(node.lon), paint.map.latp2coord(node.latp));
-                       for (var i:uint = 1; i < way.length; i++) {
+                       for (var i:uint = 1; i < w.length; i++) {
                 node = w.getNode(i);
                                g.lineTo(paint.map.lon2coord(node.lon), paint.map.latp2coord(node.latp));
                        }
                 node = w.getNode(i);
                                g.lineTo(paint.map.lon2coord(node.lon), paint.map.latp2coord(node.latp));
                        }