Don't copy blank tags to clipboard for nodes either. Don't copy them at all for markers.
[potlatch2.git] / net / systemeD / potlatch2 / controller / SelectedPOINode.as
index ca236e6fd1b87ec791889a677c76aacfdc7053e5..f68f42279ef51fb8d180bc4e699b2eae7dcf3eeb 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);