X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fundo%2FUndoDeletePoint.java;h=4cc09b47f23aa752b1b362f515d1c27acb562bf5;hp=ebc4d89c9fcdf236448ea78caac40540f1b652c0;hb=d3679d647d57c2ee7376ddbf6def2d5b23c04307;hpb=312fec956e43f5d0a38617da5d0add9c62563e2c diff --git a/tim/prune/undo/UndoDeletePoint.java b/tim/prune/undo/UndoDeletePoint.java index ebc4d89..4cc09b4 100644 --- a/tim/prune/undo/UndoDeletePoint.java +++ b/tim/prune/undo/UndoDeletePoint.java @@ -2,7 +2,6 @@ package tim.prune.undo; import tim.prune.I18nManager; import tim.prune.data.DataPoint; -import tim.prune.data.Field; import tim.prune.data.TrackInfo; /** @@ -32,7 +31,7 @@ public class UndoDeletePoint implements UndoOperation public String getDescription() { String desc = I18nManager.getText("undo.deletepoint"); - String pointName = _point.getFieldValue(Field.WAYPT_NAME); + String pointName = _point.getWaypointName(); if (pointName != null && !pointName.equals("")) desc = desc + " " + pointName; return desc; @@ -50,5 +49,6 @@ public class UndoDeletePoint implements UndoOperation { throw new UndoException(getDescription()); } + // TODO: Reinsert photo into list if necessary } } \ No newline at end of file