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 remote-tracking branch 'origin/bug/JAL-2739' into feature/JAL-2674take2
[jalview.git]
/
src
/
jalview
/
appletgui
/
SeqCanvas.java
diff --git
a/src/jalview/appletgui/SeqCanvas.java
b/src/jalview/appletgui/SeqCanvas.java
index
f59967d
..
5667b6e
100755
(executable)
--- a/
src/jalview/appletgui/SeqCanvas.java
+++ b/
src/jalview/appletgui/SeqCanvas.java
@@
-491,16
+491,12
@@
public class SeqCanvas extends Panel implements ViewportListenerI
HiddenColumns hidden = av.getAlignment().getHiddenColumns();
g.setColor(Color.blue);
int res;
HiddenColumns hidden = av.getAlignment().getHiddenColumns();
g.setColor(Color.blue);
int res;
- List<Integer> positions = hidden.findHiddenRegionPositions();
+ List<Integer> positions = hidden.findHiddenRegionPositions(startRes,
+ endx + 1);
for (int pos : positions)
{
res = pos - startRes;
for (int pos : positions)
{
res = pos - startRes;
- if (res < 0 || res > endx - startRes)
- {
- continue;
- }
-
gg.fillPolygon(
new int[]
{ res * avcharWidth - avcharHeight / 4,
gg.fillPolygon(
new int[]
{ res * avcharWidth - avcharHeight / 4,
@@
-510,7
+506,6
@@
public class SeqCanvas extends Panel implements ViewportListenerI
{ ypos - (avcharHeight / 2), ypos - (avcharHeight / 2),
ypos - (avcharHeight / 2) + 8 },
3);
{ ypos - (avcharHeight / 2), ypos - (avcharHeight / 2),
ypos - (avcharHeight / 2) + 8 },
3);
-
}
}
}
}