JAL-3187 set initial state of checkbox from viewport
[jalview.git] / src / jalview / gui / FeatureSettings.java
index 9f7326f..5b49d6d 100644 (file)
@@ -1266,6 +1266,7 @@ public class FeatureSettings extends JPanel
     boolean nucleotide = af.getViewport().getAlignment().isNucleotide();
     showComplement = new JCheckBox(
             "Show " + (nucleotide ? "protein" : "CDS") + " features");
+    showComplement.setSelected(af.getViewport().isShowComplementFeatures());
     showComplement.addActionListener(new ActionListener()
     {
       @Override