altosui: Initialize imperial units checkbox with correct value
authorKeith Packard <keithp@keithp.com>
Wed, 12 Sep 2012 06:36:26 +0000 (23:36 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 12 Sep 2012 06:36:26 +0000 (23:36 -0700)
Use imperial units preference instead of serial debug preference. Cut
& paste programming failure...

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosConfigureUI.java

index da82e8e03fa3bd567caaab724777939efaa5ca9a..249fc35a17393d67537c4f6fd620d4f29c1f26d4 100644 (file)
@@ -246,7 +246,7 @@ public class AltosConfigureUI
                c.anchor = GridBagConstraints.WEST;
                pane.add(new JLabel("Imperial Units"), c);
 
-               imperial_units = new JRadioButton("Enable", AltosUIPreferences.serial_debug());
+               imperial_units = new JRadioButton("Enable", AltosUIPreferences.imperial_units());
                imperial_units.addActionListener(new ActionListener() {
                                public void actionPerformed(ActionEvent e) {
                                        JRadioButton item = (JRadioButton) e.getSource();