From cc4553c3b742463f2b325b2219480b304ce662cb Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 8 Feb 2006 15:25:19 +0000 Subject: [PATCH] Check endRes --- src/jalview/gui/AnnotationPanel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 27ac873..f30c41c 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -862,7 +862,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, case 'E': g.setColor(SHEET_COLOUR); - if (row.annotations.length > endRes + if (row.annotations[endRes] !=null && row.annotations[endRes].secondaryStructure != 'E') { g.fillRect(lastSSX[i], y + 4 + iconOffset, -- 1.7.10.2