git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'Jalview-JS/develop' of https://source.jalview.org/git/jalview.git into...
[jalview.git]
/
src
/
jalview
/
datamodel
/
CigarArray.java
diff --git
a/src/jalview/datamodel/CigarArray.java
b/src/jalview/datamodel/CigarArray.java
index
2aa3efb
..
17e9ea6
100644
(file)
--- a/
src/jalview/datamodel/CigarArray.java
+++ b/
src/jalview/datamodel/CigarArray.java
@@
-165,24
+165,13
@@
public class CigarArray extends CigarBase
int hideEnd;
int last = start;
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];
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))
{
// truncate region at start if last falls in region
if ((hideStart < last) && (hideEnd >= last))
{