fix bug where selecting same road type didn't update the panel
authorRichard Fairhurst <richard@systemed.net>
Thu, 17 Jun 2010 16:47:20 +0000 (16:47 +0000)
committerRichard Fairhurst <richard@systemed.net>
Thu, 17 Jun 2010 16:47:20 +0000 (16:47 +0000)
net/systemeD/potlatch2/TagViewer.mxml

index b9196cb..2001035 100644 (file)
       import mx.events.DragEvent;
       import mx.managers.DragManager;
       import mx.core.DragSource;
-      
+
       private var mapFeatures:MapFeatures;
       private var selectedEntity:Entity;
       private var tagDataProvider:ArrayCollection;
                   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 {