Merge remote-tracking branch 'origin/develop' into bug/JAL-2591
[jalview.git] / src / jalview / gui / AnnotationColumnChooser.java
index 311b9d5..6fc5fad 100644 (file)
@@ -246,7 +246,7 @@ public class AnnotationColumnChooser extends AnnotationRowFilter implements
                 .getOldHiddenColumns();
         if (oldHidden != null)
         {
-          ArrayList<int[]> regions = oldHidden.getHiddenColumnsCopyAsList();
+          ArrayList<int[]> regions = oldHidden.getHiddenColumnsCopy();
           for (int[] positions : regions)
           {
             av.hideColumns(positions[0], positions[1]);
@@ -256,9 +256,9 @@ public class AnnotationColumnChooser extends AnnotationRowFilter implements
         // going to copy the hidden columns over wholesale anyway
         av.getAlignment().setHiddenColumns(oldHidden);
       }
+      av.sendSelection();
       ap.paintAlignment(true);
     }
-
   }
 
   @Override
@@ -397,6 +397,7 @@ public class AnnotationColumnChooser extends AnnotationRowFilter implements
     {
       av.hideSelectedColumns();
     }
+    av.sendSelection();
 
     filterParams = null;
     av.setAnnotationColumnSelectionState(this);