JAL-2776 repaint everything on toggle group colour bug/JAL-2776toggleGroupColour
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 23 Oct 2017 14:48:11 +0000 (15:48 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 23 Oct 2017 14:48:11 +0000 (15:48 +0100)
src/jalview/gui/FeatureSettings.java

index b768339..3f1d9c7 100644 (file)
@@ -541,13 +541,8 @@ public class FeatureSettings extends JPanel
       public void itemStateChanged(ItemEvent evt)
       {
         fr.setGroupVisibility(check.getText(), check.isSelected());
-        af.alignPanel.getSeqPanel().seqCanvas.repaint();
-        if (af.alignPanel.overviewPanel != null)
-        {
-          af.alignPanel.overviewPanel.updateOverviewImage();
-        }
-
         resetTable(new String[] { grp });
+        af.alignPanel.paintAlignment(true, true);
       }
     });
     groupPanel.add(check);