]> gitweb.fperrin.net Git - GpsPrune.git/commitdiff
Merge branch 'minor-usability-fixes' into fp-integration v19.2.fp2
authorFrédéric Perrin <fred@fperrin.net>
Sun, 1 Dec 2019 12:34:03 +0000 (12:34 +0000)
committerFrédéric Perrin <fred@fperrin.net>
Sun, 1 Dec 2019 12:34:03 +0000 (12:34 +0000)
src/tim/prune/function/edit/PointNameEditor.java

index 9e6e343dc1357e3f0b9c753b4fd514cb21f20e1e..ca5771d45fe9886c2717127b8e80ef257a47dc8e 100644 (file)
@@ -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();