X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=src%2Ftim%2Fprune%2Ffunction%2Fedit%2FPointNameEditor.java;h=ca5771d45fe9886c2717127b8e80ef257a47dc8e;hb=e4cea538f03c98689830724fde1455a8d85b4ccc;hp=9e6e343dc1357e3f0b9c753b4fd514cb21f20e1e;hpb=70a5bc3f643681d1948586753d624ff34bb07ea6;p=GpsPrune.git diff --git a/src/tim/prune/function/edit/PointNameEditor.java b/src/tim/prune/function/edit/PointNameEditor.java index 9e6e343..ca5771d 100644 --- a/src/tim/prune/function/edit/PointNameEditor.java +++ b/src/tim/prune/function/edit/PointNameEditor.java @@ -208,8 +208,11 @@ public class PointNameEditor extends GenericFunction { // If a new name has been added, changing the point // from trackpoint to waypoint, duplicate it - _app.createPoint(_point.clonePoint()); - + if (wasNameAdded()) + { + _app.createPoint(_point.clonePoint()); + } + // make lists for edit and undo, and add the changed field FieldEditList editList = new FieldEditList(); FieldEditList undoList = new FieldEditList();