column++;\r
}\r
\r
+ if(column>=row.annotations.length)\r
+ column = row.annotations.length-1;\r
+\r
x += av.charWidth;\r
\r
if (row.hasIcons)\r
case 'E':\r
g.setColor(SHEET_COLOUR);\r
\r
- if (row.annotations.length > endRes\r
- && row.annotations[endRes].secondaryStructure != 'E')\r
+ if (row.annotations[endRes] ==null\r
+ || row.annotations[endRes].secondaryStructure != 'E')\r
{\r
g.fillRect(lastSSX, y + 4 + iconOffset,\r
x - lastSSX - 4, 7);\r