From: kiramt Date: Thu, 1 Feb 2018 08:59:07 +0000 (+0000) Subject: JAL-2759 use right iterator for getVisibleColsIterator X-Git-Tag: Release_2_10_4~55^2~1^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fa4ba68d035abe5ff04f59b7383469e157c4977f;p=jalview.git JAL-2759 use right iterator for getVisibleColsIterator --- diff --git a/src/jalview/datamodel/HiddenColumns.java b/src/jalview/datamodel/HiddenColumns.java index 4b647db..509bd73 100644 --- a/src/jalview/datamodel/HiddenColumns.java +++ b/src/jalview/datamodel/HiddenColumns.java @@ -1085,7 +1085,7 @@ public class HiddenColumns { LOCK.readLock().lock(); return new RangeElementsIterator(start, end, - new RangeIterator(hiddenColumns)); + new VisibleContigsIterator(start, end + 1, hiddenColumns)); } finally { LOCK.readLock().unlock();