From: Andy Allan Date: Sat, 24 Apr 2010 16:53:55 +0000 (+0000) Subject: Bugfix - entity is being set to newFeature not feature. Threw exception on feature... X-Git-Tag: 0.5~483 X-Git-Url: https://git.openstreetmap.org/potlatch2.git/commitdiff_plain/53903bf08e67a2820fffa113eb979afe4e7b4c71 Bugfix - entity is being set to newFeature not feature. Threw exception on feature=null --- diff --git a/net/systemeD/potlatch2/TagViewer.mxml b/net/systemeD/potlatch2/TagViewer.mxml index 8184853f..c5cc3feb 100644 --- a/net/systemeD/potlatch2/TagViewer.mxml +++ b/net/systemeD/potlatch2/TagViewer.mxml @@ -482,7 +482,7 @@ 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 ) {