Curvies, not squaries
[potlatch2.git] / net / systemeD / potlatch2 / VectorSourceDialog.mxml
index 33948ebdee676382e0d05b1bc014e931828abe40..5dbbe723bdee8564e09c7a0689e23d8ab231553d 100644 (file)
        }
        
        private function toggleVisibility(event:Event):void {
-               map.findLayer[dataGrid.selectedItem.name].visible = !map.findLayer[dataGrid.selectedItem.name].visible;
+               map.findLayer(dataGrid.selectedItem.name).visible = !map.findLayer(dataGrid.selectedItem.name).visible;
        }
        
        private function dataEdited(event:DataGridEvent):void {