Don't copy blank tags to the clipboard. This happens when DrawWay.exitState() calls...
authorAndy Allan <gravitystorm@gmail.com>
Wed, 1 Dec 2010 14:51:58 +0000 (14:51 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Wed, 1 Dec 2010 14:51:58 +0000 (14:51 +0000)
net/systemeD/potlatch2/controller/SelectedWay.as

index d2fa2cc..60091b1 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);