don't die when mousing over POIs
[potlatch2.git] / net / systemeD / potlatch2 / controller / DrawWay.as
index f0dca94ca171f642591aa8c8df2cd7e728005ff9..eca24c998725d9101165ed5c601c01dce3395371 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) {