From: kiramt Date: Mon, 15 Jan 2018 11:59:14 +0000 (+0000) Subject: JAL-2759 Changed VisibleColsCollection constructor to take HiddenColumns X-Git-Tag: Release_2_10_4~55^2~1^2~42 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=48c1277f3404dc5b1a99da60e7ab0566c57eaa0c;p=jalview.git JAL-2759 Changed VisibleColsCollection constructor to take HiddenColumns --- diff --git a/src/jalview/datamodel/VisibleColsCollection.java b/src/jalview/datamodel/VisibleColsCollection.java index c3d0ab4..4ca51b5 100644 --- a/src/jalview/datamodel/VisibleColsCollection.java +++ b/src/jalview/datamodel/VisibleColsCollection.java @@ -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 diff --git a/src/jalview/viewmodel/OverviewDimensionsHideHidden.java b/src/jalview/viewmodel/OverviewDimensionsHideHidden.java index c158ce7..0ca1cc3 100644 --- a/src/jalview/viewmodel/OverviewDimensionsHideHidden.java +++ b/src/jalview/viewmodel/OverviewDimensionsHideHidden.java @@ -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