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
}
}
- if (row.graph > 0)
+ if (row.graph > 0 && row.graphHeight> 0)
{
if (row.graph == AlignmentAnnotation.LINE_GRAPH)
{
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