X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentAnnotation.java;h=87c113fa5ad346e2c13b2f68b59a1fd7d2d02807;hb=cc190cfe952a4d8ef8c38247ee35b1a4675da572;hp=d3d36d26ea27c2b2d8131b3db393a3a45a9cab00;hpb=908ebb43785033af3ed12d5214c3ac3fbba6e932;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentAnnotation.java b/src/jalview/datamodel/AlignmentAnnotation.java index d3d36d2..87c113f 100755 --- a/src/jalview/datamodel/AlignmentAnnotation.java +++ b/src/jalview/datamodel/AlignmentAnnotation.java @@ -88,7 +88,7 @@ public class AlignmentAnnotation public int graphHeight = 40; - public boolean padGaps = true; + public boolean padGaps = false; public static final int NO_GRAPH = 0; @@ -142,7 +142,6 @@ Loading... { if (annotations[i] == null) { - padGaps = false; continue; } if (annotations[i].secondaryStructure == 'H' || @@ -153,7 +152,6 @@ Loading... if(annotations[i].displayCharacter==null) { - padGaps = false; continue; } @@ -174,8 +172,6 @@ Loading... { hasText = true; } - else - padGaps = false; } if (nonSSLabel) @@ -361,12 +357,18 @@ Loading... */ public void restrict(int startRes, int endRes) { + if (startRes<0) + startRes=0; + if (startRes>=annotations.length) + startRes = annotations.length-1; + if (endRes>=annotations.length) + endRes = annotations.length-1; if (annotations==null) return; Annotation[] temp = new Annotation[endRes-startRes+1]; if (startRes