don't die when mousing over POIs
authorRichard Fairhurst <richard@systemed.net>
Mon, 14 Jun 2010 18:15:52 +0000 (18:15 +0000)
committerRichard Fairhurst <richard@systemed.net>
Mon, 14 Jun 2010 18:15:52 +0000 (18:15 +0000)
net/systemeD/potlatch2/controller/DrawWay.as

index f0dca94..eca24c9 100644 (file)
@@ -82,7 +82,7 @@ package net.systemeD.potlatch2.controller {
                                        hoverEntity=focus;
                                        controller.map.setHighlight(focus, { showNodesHover: true });
                                }
-                               if (entity is Node && Way(focus).endsWith(Node(entity))) {
+                               if (entity is Node && focus is Way && Way(focus).endsWith(Node(entity))) {
                                        if (focus==selectedWay) { controller.setCursor(controller.pen_so); }
                                                           else { controller.setCursor(controller.pen_o); }
                                } else if (entity is Node) {