X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fundo%2FUndoEditPoint.java;h=1ee16dc72ea1ae6baa0732838ee80af2b3ed494a;hp=a9f566531a37c3efd11ede111846dee844efedb1;hb=54b9d8bc8f0025ccf97a67d9dd217ef1f9cf082f;hpb=52bf9e8686c916be37a26a0b75340393d4478b05 diff --git a/tim/prune/undo/UndoEditPoint.java b/tim/prune/undo/UndoEditPoint.java index a9f5665..1ee16dc 100644 --- a/tim/prune/undo/UndoEditPoint.java +++ b/tim/prune/undo/UndoEditPoint.java @@ -3,7 +3,7 @@ package tim.prune.undo; import tim.prune.I18nManager; import tim.prune.data.DataPoint; import tim.prune.data.TrackInfo; -import tim.prune.edit.FieldEditList; +import tim.prune.function.edit.FieldEditList; /** * Operation to undo the edit of a single point @@ -32,8 +32,11 @@ public class UndoEditPoint implements UndoOperation public String getDescription() { String desc = I18nManager.getText("undo.editpoint"); + String newName = _undoFieldList.getEdit(0).getValue(); String pointName = _originalPoint.getWaypointName(); - if (pointName != null && !pointName.equals("")) + if (newName != null && !newName.equals("")) + desc = desc + " " + newName; + else if (pointName != null && !pointName.equals("")) desc = desc + " " + pointName; return desc; }