Boog fix with switching styles
authorAndy Allan <gravitystorm@gmail.com>
Mon, 29 Nov 2010 11:55:31 +0000 (11:55 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Mon, 29 Nov 2010 11:55:31 +0000 (11:55 +0000)
net/systemeD/potlatch2/StyleSelector.mxml

index 9fa849e..9cc34e4 100644 (file)
@@ -6,7 +6,7 @@
        
        <mx:List width="100%" height="100%" id="mapStyle" 
                labelField="name"
-               change="Application.application.styleButton.close(); Application.application.setStylesheet(mapStyle.selectedItem.name, mapStyle.selectedItem.url);"
+               change="Application.application.styleButton.close(); Stylesheets.instance().setStylesheet(mapStyle.selectedItem.name, mapStyle.selectedItem.url);"
                dataProvider="{Stylesheets.instance().getCollection()}" />
 
        <mx:Button label="Edit..." click="new BackgroundDialog().init('Map style',mapStyle,Stylesheets.instance());" />