X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentAnnotation.java;h=87c113fa5ad346e2c13b2f68b59a1fd7d2d02807;hb=cc190cfe952a4d8ef8c38247ee35b1a4675da572;hp=ae81a90cf28e631113a8c975324ccd5c5ff267dd;hpb=b7620d52027f3bb6f8bc7673563ea30a6adacf22;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentAnnotation.java b/src/jalview/datamodel/AlignmentAnnotation.java index ae81a90..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