Check endRes
authoramwaterhouse <Andrew Waterhouse>
Wed, 8 Feb 2006 15:25:19 +0000 (15:25 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 8 Feb 2006 15:25:19 +0000 (15:25 +0000)
src/jalview/gui/AnnotationPanel.java

index 27ac873..f30c41c 100755 (executable)
@@ -862,7 +862,7 @@ public class AnnotationPanel extends JPanel implements MouseListener,
                 case 'E':\r
                     g.setColor(SHEET_COLOUR);\r
 \r
-                    if (row.annotations.length > endRes\r
+                    if (row.annotations[endRes] !=null\r
                         && row.annotations[endRes].secondaryStructure != 'E')\r
                     {\r
                       g.fillRect(lastSSX[i], y + 4 + iconOffset,\r