JAL-1768 set initial 'enabled' state for id width label as well
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 2 Sep 2015 15:31:43 +0000 (16:31 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 2 Sep 2015 15:31:43 +0000 (16:31 +0100)
src/jalview/gui/Preferences.java

index eadf6ad..88f5df3 100755 (executable)
@@ -354,7 +354,7 @@ public class Preferences extends GPreferences
             "Prompt each time"));
     autoIdWidth.setSelected(Cache.getDefault("FIGURE_AUTOIDWIDTH", false));
     userIdWidth.setEnabled(!autoIdWidth.isSelected());
-    userIdWidthlabel.setEnabled(autoIdWidth.isSelected());
+    userIdWidthlabel.setEnabled(!autoIdWidth.isSelected());
     Integer wi = Cache.getIntegerProperty("FIGURE_USERIDWIDTH");
     userIdWidth.setText(wi == null ? "" : wi.toString());
     blcjv.setSelected(Cache.getDefault("BLC_JVSUFFIX", true));