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