JAL-2759 use right iterator for getVisibleColsIterator
authorkiramt <k.mourao@dundee.ac.uk>
Thu, 1 Feb 2018 08:59:07 +0000 (08:59 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Thu, 1 Feb 2018 08:59:07 +0000 (08:59 +0000)
src/jalview/datamodel/HiddenColumns.java

index 4b647db..509bd73 100644 (file)
@@ -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();