x1 += av.charWidth / 2;
}
- if (row.annotations[column] == null
+ if (!validRes || row.annotations[column] == null
|| row.annotations[column].secondaryStructure != 'H')
{
g.fillArc((x * av.charWidth) - av.charWidth, y + 4
res = av.getColumnSelection().adjustForHiddenColumns(res);
}
- if (aa[row].annotations != null && row > -1
+ if (row > -1 && aa[row].annotations != null
&& res < (int) aa[row].annotations.length)
{
if (aa[row].graphGroup > -1)
x1 += av.charWidth / 2;
}
- if (row.annotations[column] == null
+ if (!validRes || row.annotations[column] == null
|| row.annotations[column].secondaryStructure != 'H')
{
g.fillArc((x * av.charWidth) - av.charWidth, y + 4