set the initial NoSelection state before constructing the toolbox, so the icons are...
authorAndy Allan <gravitystorm@gmail.com>
Tue, 16 Nov 2010 17:50:28 +0000 (17:50 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Tue, 16 Nov 2010 17:50:28 +0000 (17:50 +0000)
net/systemeD/potlatch2/EditController.as

index 8315749..60ad793 100644 (file)
@@ -31,10 +31,11 @@ package net.systemeD.potlatch2 {
                
         public function EditController(map:Map, tagViewer:TagViewer, toolbox:Toolbox) {
             this._map = map;
+            setState(new NoSelection());
             this.tagViewer = tagViewer;
                        this.toolbox = toolbox;
                        this.toolbox.init(this);
-            setState(new NoSelection());
+
             
             map.parent.addEventListener(MouseEvent.MOUSE_MOVE, mapMouseEvent);
             map.parent.addEventListener(MouseEvent.MOUSE_UP, mapMouseEvent);