From: Frédéric Perrin Date: Sun, 1 Dec 2019 12:34:03 +0000 (+0000) Subject: Merge branch 'minor-usability-fixes' into fp-integration X-Git-Tag: v19.2.fp2 X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=commitdiff_plain;h=1b1128bb59c2831eda4f40c48236f02e41581e54;hp=a3cb2b5a1ffe4d027d1c896a5ef9bb3f7b280d89 Merge branch 'minor-usability-fixes' into fp-integration --- 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();