X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fundo%2FUndoEditPoint.java;h=be41ea0d88f92c7ce15ef966a253a607b2fe853f;hp=228795b6d5d5d34e0b15d9bf7e955fc5f3544345;hb=4d5796d02a15808311c09448d79e6e7d1de9d636;hpb=f1b92378a792131ac8fb33a869405851d5b2d1f7 diff --git a/tim/prune/undo/UndoEditPoint.java b/tim/prune/undo/UndoEditPoint.java index 228795b..be41ea0 100644 --- a/tim/prune/undo/UndoEditPoint.java +++ b/tim/prune/undo/UndoEditPoint.java @@ -2,6 +2,7 @@ package tim.prune.undo; import tim.prune.I18nManager; import tim.prune.data.DataPoint; +import tim.prune.data.Field; import tim.prune.data.TrackInfo; import tim.prune.function.edit.FieldEditList; @@ -32,7 +33,9 @@ public class UndoEditPoint implements UndoOperation public String getDescription() { String desc = I18nManager.getText("undo.editpoint"); - String newName = _undoFieldList.getEdit(0).getValue(); + String newName = null; + if (_undoFieldList.getEdit(0).getField() == Field.WAYPT_NAME) + newName = _undoFieldList.getEdit(0).getValue(); String pointName = _originalPoint.getWaypointName(); if (newName != null && !newName.equals("")) desc = desc + " " + newName;