A different way to (hopefully) fix the binding issue
authorAndy Allan <gravitystorm@gmail.com>
Wed, 16 Feb 2011 12:38:29 +0000 (12:38 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 16 Feb 2011 12:38:29 +0000 (12:38 +0000)
net/systemeD/potlatch2/mapfeatures/editors/ChoiceEditor.mxml

index d43741dd96b81689a6658d62520d12c58216500d..e75eb5e7890a4f385414514e21454dcf94af4366 100644 (file)
@@ -12,7 +12,7 @@
       <edit:itemRenderer>
         <mx:Component>
         <mx:HBox toolTip="{data.description}" horizontalScrollPolicy="off">
-          <mx:Image source="{data.icon}"/>
+          <mx:Image source="{Choice(data).icon}"/>
           <mx:Label htmlText="{data.label}"/>
         </mx:HBox>
         </mx:Component>