small boog fix
authorRichard Fairhurst <richard@systemed.net>
Tue, 15 Jun 2010 17:57:57 +0000 (17:57 +0000)
committerRichard Fairhurst <richard@systemed.net>
Tue, 15 Jun 2010 17:57:57 +0000 (17:57 +0000)
net/systemeD/potlatch2/controller/DrawWay.as

index bae555f..4b7c7b4 100644 (file)
@@ -127,6 +127,11 @@ package net.systemeD.potlatch2.controller {
                }
                
                protected function stopDrawing():ControllerState {
+                       if ( hoverEntity ) {
+                               controller.map.setHighlight(hoverEntity, { showNodesHover: false });
+                               hoverEntity = null;
+                       }
+
                        if ( selectedWay.length<2) {
                                controller.map.setHighlight(selectedWay, { showNodes: false });
                                selectedWay.remove(MainUndoStack.getGlobalStack().addAction);