From ada8d51630a0ea20f40935be7b2b1cb3d596b9e3 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Fri, 28 Jan 2011 13:12:23 +0000 Subject: [PATCH] ok, this should update the toolbox without incurring the tag panel time penalty --- net/systemeD/potlatch2/EditController.as | 4 ++++ net/systemeD/potlatch2/controller/DrawWay.as | 1 + 2 files changed, 5 insertions(+) diff --git a/net/systemeD/potlatch2/EditController.as b/net/systemeD/potlatch2/EditController.as index fd4bec0f..32cbc4c6 100644 --- a/net/systemeD/potlatch2/EditController.as +++ b/net/systemeD/potlatch2/EditController.as @@ -86,6 +86,10 @@ package net.systemeD.potlatch2 { tagViewer.setEntity(state.selection, layer); toolbox.updateSelectionUI(); } + + public function updateSelectionUIWithoutTagChange():void { + toolbox.updateSelectionUI(); + } private function keyDownHandler(event:KeyboardEvent):void { keys[event.keyCode]=true; diff --git a/net/systemeD/potlatch2/controller/DrawWay.as b/net/systemeD/potlatch2/controller/DrawWay.as index 51521611..dcf63d8b 100644 --- a/net/systemeD/potlatch2/controller/DrawWay.as +++ b/net/systemeD/potlatch2/controller/DrawWay.as @@ -48,6 +48,7 @@ package net.systemeD.potlatch2.controller { controller.map.setPurgable([node], false); resetElastic(node); lastClick=node; + controller.updateSelectionUIWithoutTagChange(); } else if ( entity is Node ) { if (entity==lastClick && (new Date().getTime()-lastClickTime.getTime())<1000) { if (Way(firstSelected).length==1 && Way(firstSelected).getNode(0).parentWays.length==1) { -- 2.30.0