Merge branch 'bug/JAL-2920_uniprotvariantfeature' into releases/Release_2_10_4_Branch
[jalview.git] / src / jalview / datamodel / CigarArray.java
index 2aa3efb..17e9ea6 100644 (file)
@@ -165,24 +165,13 @@ public class CigarArray extends CigarBase
       int hideEnd;
       int last = start;
 
-      Iterator<int[]> regions = hidden.getBoundedIterator(start, end, true);
+      Iterator<int[]> regions = hidden.getBoundedIterator(start, end);
       while (regions.hasNext())
       {
         region = regions.next();
         hideStart = region[0];
         hideEnd = region[1];
 
-        // just move on if hideEnd is before last
-        if (hideEnd < last)
-        {
-          continue;
-        }
-        // exit if next region is after end
-        if (hideStart > end)
-        {
-          break;
-        }
-
         // truncate region at start if last falls in region
         if ((hideStart < last) && (hideEnd >= last))
         {