]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/undo/UndoEditPoint.java
Version 14, October 2012
[GpsPrune.git] / tim / prune / undo / UndoEditPoint.java
index 228795b6d5d5d34e0b15d9bf7e955fc5f3544345..be41ea0d88f92c7ce15ef966a253a607b2fe853f 100644 (file)
@@ -2,6 +2,7 @@ package tim.prune.undo;
 \r
 import tim.prune.I18nManager;\r
 import tim.prune.data.DataPoint;\r
+import tim.prune.data.Field;\r
 import tim.prune.data.TrackInfo;\r
 import tim.prune.function.edit.FieldEditList;\r
 \r
@@ -32,7 +33,9 @@ public class UndoEditPoint implements UndoOperation
        public String getDescription()\r
        {\r
                String desc = I18nManager.getText("undo.editpoint");\r
-               String newName = _undoFieldList.getEdit(0).getValue();\r
+               String newName = null;\r
+               if (_undoFieldList.getEdit(0).getField() == Field.WAYPT_NAME)\r
+                       newName = _undoFieldList.getEdit(0).getValue();\r
                String pointName = _originalPoint.getWaypointName();\r
                if (newName != null && !newName.equals(""))\r
                        desc = desc + " " + newName;\r