X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2Ffunction%2FPasteCoordinates.java;h=c60bb854afe03cabd19189495b38399ba2f0c06d;hp=c9b2ad1c7ff3f74da6e8162fbb84d8fa886c1e42;hb=HEAD;hpb=2302358503c38817e19f6e529f6c9e530aac0e86 diff --git a/src/tim/prune/function/PasteCoordinates.java b/src/tim/prune/function/PasteCoordinates.java index c9b2ad1..c60bb85 100644 --- a/src/tim/prune/function/PasteCoordinates.java +++ b/src/tim/prune/function/PasteCoordinates.java @@ -183,7 +183,8 @@ public class PasteCoordinates extends GenericFunction else if (items.length == 3) { point = parseValues(items[0].trim(), items[1].trim(), items[2].trim()); } - else { + else + { // Splitting with commas didn't work, so try spaces items = _coordField.getText().split(" "); if (items.length == 2) { @@ -211,7 +212,8 @@ public class PasteCoordinates extends GenericFunction I18nManager.getText("dialog.pastecoordinates.nothingfound"), I18nManager.getText(getNameKey()), JOptionPane.ERROR_MESSAGE); } - else { + else + { // See if name was entered String name = _nameField.getText(); if (name != null && name.length() > 0) {