Merge branch 'develop' into feature/JAL-244_Automatically_adjust_left_margin_to_avoid...
authorBen Soares <b.soares@dundee.ac.uk>
Thu, 27 Jul 2023 19:18:50 +0000 (20:18 +0100)
committerBen Soares <b.soares@dundee.ac.uk>
Thu, 27 Jul 2023 19:18:50 +0000 (20:18 +0100)
1  2 
src/jalview/gui/AlignFrame.java
src/jalview/gui/AnnotationLabels.java

Simple merge
@@@ -557,12 -537,11 +559,15 @@@ public class AnnotationLabels extends J
                public void run()
                {
                  final long progBar;
 -                ap.alignFrame.setProgressBar(MessageManager.formatMessage("action.clustering_matrix_for",cm.getAnnotDescr(),5f), progBar = System.currentTimeMillis());
 +                ap.alignFrame.setProgressBar(
 +                        MessageManager.formatMessage(
 +                                "action.clustering_matrix_for",
 +                                cm.getAnnotDescr(), 5f),
 +                        progBar = System.currentTimeMillis());
-                 cm.setGroupSet(GroupSet.makeGroups(cm, 5f, true));
+                 cm.setGroupSet(GroupSet.makeGroups(cm, true));
+                 cm.randomlyReColourGroups();
+                 cm.transferGroupColorsTo(alignmentAnnotation);
+                 ap.alignmentChanged();
                  ap.alignFrame.showContactMapTree(alignmentAnnotation, cm);
                  ap.alignFrame.setProgressBar(null, progBar);
                }