]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/undo/UndoDeletePoint.java
Version 2, March 2007
[GpsPrune.git] / tim / prune / undo / UndoDeletePoint.java
index ebc4d89c9fcdf236448ea78caac40540f1b652c0..4cc09b47f23aa752b1b362f515d1c27acb562bf5 100644 (file)
@@ -2,7 +2,6 @@ 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
 \r
 /**\r
@@ -32,7 +31,7 @@ public class UndoDeletePoint implements UndoOperation
        public String getDescription()\r
        {\r
                String desc = I18nManager.getText("undo.deletepoint");\r
-               String pointName = _point.getFieldValue(Field.WAYPT_NAME);\r
+               String pointName = _point.getWaypointName();\r
                if (pointName != null && !pointName.equals(""))\r
                        desc = desc + " " + pointName;\r
                return desc;\r
@@ -50,5 +49,6 @@ public class UndoDeletePoint implements UndoOperation
                {\r
                        throw new UndoException(getDescription());\r
                }\r
+               // TODO: Reinsert photo into list if necessary\r
        }\r
 }
\ No newline at end of file