]> gitweb.fperrin.net Git - GpsPrune.git/blobdiff - tim/prune/function/PasteCoordinates.java
Version 14, October 2012
[GpsPrune.git] / tim / prune / function / PasteCoordinates.java
index 23fe8d285afd8af965a47e62f3fcdc0827a12603..7587949b25c893e5a4c9565d69d6a723ae603ec2 100644 (file)
@@ -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);
        }