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
JAL-2674 add bounds to findHiddenRegionPositions
[jalview.git]
/
src
/
jalview
/
appletgui
/
ScalePanel.java
diff --git
a/src/jalview/appletgui/ScalePanel.java
b/src/jalview/appletgui/ScalePanel.java
index
514c3f9
..
e00db7c
100755
(executable)
--- a/
src/jalview/appletgui/ScalePanel.java
+++ b/
src/jalview/appletgui/ScalePanel.java
@@
-436,17
+436,12
@@
public class ScalePanel extends Panel
if (av.getShowHiddenMarkers())
{
int widthx = 1 + endx - startx;
if (av.getShowHiddenMarkers())
{
int widthx = 1 + endx - startx;
- List<Integer> positions = hidden.findHiddenRegionPositions();
+ List<Integer> positions = hidden.findHiddenRegionPositions(startx,
+ startx + widthx + 1);
for (int pos : positions)
{
for (int pos : positions)
{
-
res = pos - startx;
res = pos - startx;
- if (res < 0 || res > widthx)
- {
- continue;
- }
-
gg.fillPolygon(
new int[]
{ -1 + res * avCharWidth - avcharHeight / 4,
gg.fillPolygon(
new int[]
{ -1 + res * avCharWidth - avcharHeight / 4,