Bugfix - entity is being set to newFeature not feature. Threw exception on feature...
authorAndy Allan <gravitystorm@gmail.com>
Sat, 24 Apr 2010 16:53:55 +0000 (16:53 +0000)
committerAndy Allan <gravitystorm@gmail.com>
Sat, 24 Apr 2010 16:53:55 +0000 (16:53 +0000)
net/systemeD/potlatch2/TagViewer.mxml

index 8184853..c5cc3fe 100644 (file)
           var newFeature:Feature = tw.selectedType;
           var undoStack:Function = MainUndoStack.getGlobalStack().addAction;
           var action:CompositeUndoableAction = new CompositeUndoableAction(
-                  "Set "+selectedEntity.getType()+" "+selectedEntity.id+" to "+feature.name);
+                  "Set "+selectedEntity.getType()+" "+selectedEntity.id+" to "+newFeature.name);
 
           // remove tags from the current feature
           if ( feature != null ) {