From: Richard Fairhurst Date: Thu, 17 Jun 2010 16:47:20 +0000 (+0000) Subject: fix bug where selecting same road type didn't update the panel X-Git-Tag: 0.5~379 X-Git-Url: https://git.openstreetmap.org/potlatch2.git/commitdiff_plain/809bcd67f363bacf6e712a978e2c0ecd20e9b67e fix bug where selecting same road type didn't update the panel --- diff --git a/net/systemeD/potlatch2/TagViewer.mxml b/net/systemeD/potlatch2/TagViewer.mxml index b9196cb9..20010354 100644 --- a/net/systemeD/potlatch2/TagViewer.mxml +++ b/net/systemeD/potlatch2/TagViewer.mxml @@ -122,7 +122,7 @@ import mx.events.DragEvent; import mx.managers.DragManager; import mx.core.DragSource; - + private var mapFeatures:MapFeatures; private var selectedEntity:Entity; private var tagDataProvider:ArrayCollection; @@ -160,13 +160,14 @@ oldFeature.removeEventListener("imageChanged", featureImageChanged); if ( feature != null ) feature.addEventListener("imageChanged", featureImageChanged); - initialiseEditors(); } - if ( feature != null ) + if ( feature != null ) { + initialiseEditors(); setFeatureIcon(selectedEntity, feature); - else + } else { blankFeatureIcon(selectedEntity); + } } private function featureImageChanged(event:Event):void {