JAL-2759 Changed VisibleColsCollection constructor to take HiddenColumns
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 15 Jan 2018 11:59:14 +0000 (11:59 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Mon, 15 Jan 2018 11:59:14 +0000 (11:59 +0000)
src/jalview/datamodel/VisibleColsCollection.java
src/jalview/viewmodel/OverviewDimensionsHideHidden.java

index c3d0ab4..4ca51b5 100644 (file)
@@ -32,11 +32,11 @@ public class VisibleColsCollection implements AlignmentColsCollectionI
 
   HiddenColumns hidden;
 
-  public VisibleColsCollection(int s, int e, AlignmentI al)
+  public VisibleColsCollection(int s, int e, HiddenColumns h)
   {
     start = s;
     end = e;
-    hidden = al.getHiddenColumns();
+    hidden = h;
   }
 
   @Override
index c158ce7..0ca1cc3 100644 (file)
@@ -147,7 +147,7 @@ public class OverviewDimensionsHideHidden extends OverviewDimensions
   public AlignmentColsCollectionI getColumns(AlignmentI al)
   {
     return new VisibleColsCollection(0,
-            ranges.getAbsoluteAlignmentWidth() - 1, al);
+            ranges.getAbsoluteAlignmentWidth() - 1, al.getHiddenColumns());
   }
 
   @Override