From: amwaterhouse Date: Wed, 8 Feb 2006 15:25:19 +0000 (+0000) Subject: Check endRes X-Git-Tag: Root_VamJalview_2_07b+~161 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=cc4553c3b742463f2b325b2219480b304ce662cb;p=jalview.git Check endRes --- 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,