X-Git-Url: https://gitweb.fperrin.net/?a=blobdiff_plain;f=tim%2Fprune%2Fthreedee%2FLineDialog.java;h=e371bd0429105ac502d1d0a46f14a3d72e715f35;hb=140e9d165f85c3d4f0435a311e091209313faa2a;hp=a0f218a65e82bbcd8fe9221a906b957d894a984f;hpb=54b9d8bc8f0025ccf97a67d9dd217ef1f9cf082f;p=GpsPrune.git diff --git a/tim/prune/threedee/LineDialog.java b/tim/prune/threedee/LineDialog.java index a0f218a..e371bd0 100644 --- a/tim/prune/threedee/LineDialog.java +++ b/tim/prune/threedee/LineDialog.java @@ -64,7 +64,9 @@ public class LineDialog JPanel panel = new JPanel(); panel.setLayout(new BorderLayout()); StringBuffer descBuffer = new StringBuffer(); - if (_latLines == null || _latLines.length == 0 || _lonLines == null || _lonLines.length == 0) + final int numLatLines = (_latLines == null?0:_latLines.length); + final int numLonLines = (_lonLines == null?0:_lonLines.length); + if (numLatLines == 0 && numLonLines == 0) { descBuffer.append("

").append(I18nManager.getText("dialog.3dlines.empty")).append("

"); } @@ -73,7 +75,7 @@ public class LineDialog descBuffer.append("

").append(I18nManager.getText("dialog.3dlines.intro")).append(":

"); descBuffer.append("

").append(I18nManager.getText("fieldname.latitude")).append("

"); descBuffer.append("

").append(I18nManager.getText("fieldname.longitude")).append("