Don't copy blank tags to the clipboard. This happens when DrawWay.exitState() calls...
[potlatch2.git] / net / systemeD / potlatch2 / controller / SelectedWay.as
index d2fa2cc89d3ccfb38c3ce6732fe5ed95bdee5990..60091b1f045e1e68ade00834201b87f6894bb7dd 100644 (file)
@@ -104,7 +104,9 @@ package net.systemeD.potlatch2.controller {
                        Globals.vars.root.addDebug("**** -> "+this+" "+firstSelected.id);
         }
         override public function exitState(newState:ControllerState):void {
-                       controller.clipboards['way']=firstSelected.getTagsCopy();
+                       if (firstSelected.hasTags()) {
+              controller.clipboards['way']=firstSelected.getTagsCopy();
+            }
                        controller.map.setPurgable(selection,true);
             clearSelection(newState);
                        Globals.vars.root.addDebug("**** <- "+this);