X-Git-Url: https://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Ffunction%2FPasteCoordinates.java;h=7587949b25c893e5a4c9565d69d6a723ae603ec2;hp=23fe8d285afd8af965a47e62f3fcdc0827a12603;hb=4d5796d02a15808311c09448d79e6e7d1de9d636;hpb=f1b92378a792131ac8fb33a869405851d5b2d1f7 diff --git a/tim/prune/function/PasteCoordinates.java b/tim/prune/function/PasteCoordinates.java index 23fe8d2..7587949 100644 --- a/tim/prune/function/PasteCoordinates.java +++ b/tim/prune/function/PasteCoordinates.java @@ -75,8 +75,8 @@ public class PasteCoordinates extends GenericFunction // MAYBE: Paste clipboard into the edit field _coordField.setText(""); _nameField.setText(""); - boolean metric = Config.getConfigBoolean(Config.KEY_METRIC_UNITS); - _altUnitsDropDown.setSelectedIndex(metric?0:1); + boolean useMetres = (Config.getUnitSet().getDefaultAltitudeFormat() == Altitude.Format.METRES); + _altUnitsDropDown.setSelectedIndex(useMetres?0:1); enableOK(); _dialog.setVisible(true); }