Don't copy blank tags to clipboard for nodes either. Don't copy them at all for markers.
authorAndy Allan <gravitystorm@gmail.com>
Wed, 1 Dec 2010 14:52:00 +0000 (14:52 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 1 Dec 2010 14:52:00 +0000 (14:52 +0000)
net/systemeD/potlatch2/controller/SelectedMarker.as
net/systemeD/potlatch2/controller/SelectedPOINode.as
net/systemeD/potlatch2/controller/SelectedWayNode.as

index f158efe..c63164d 100644 (file)
@@ -59,7 +59,6 @@ package net.systemeD.potlatch2.controller {
         }
 
         override public function exitState(newState:ControllerState):void {
-                       controller.clipboards['marker']=firstSelected.getTagsCopy();
                        controller.map.setPurgable(selection,true);
             clearSelection(newState);
                        Globals.vars.root.addDebug("**** <- "+this);
index ca236e6..f68f422 100644 (file)
@@ -62,7 +62,9 @@ package net.systemeD.potlatch2.controller {
                        Globals.vars.root.addDebug("**** -> "+this);
         }
         override public function exitState(newState:ControllerState):void {
-                       controller.clipboards['node']=firstSelected.getTagsCopy();
+            if(firstSelected.hasTags()) {
+              controller.clipboards['node']=firstSelected.getTagsCopy();
+            }
                        controller.map.setPurgable(selection,true);
             clearSelection(newState);
                        Globals.vars.root.addDebug("**** <- "+this);
index e959a0a..fff7629 100644 (file)
@@ -98,7 +98,9 @@ package net.systemeD.potlatch2.controller {
                        Globals.vars.root.addDebug("**** -> "+this);
         }
                override public function exitState(newState:ControllerState):void {
-                       controller.clipboards['node']=firstSelected.getTagsCopy();
+            if (firstSelected.hasTags()) {
+              controller.clipboards['node']=firstSelected.getTagsCopy();
+            }
                        controller.map.setPurgable(selection,true);
             clearSelection(newState);
                        Globals.vars.root.addDebug("**** <- "+this);