X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAlignmentAnnotation.java;h=a3328b317d8d7e31acf9940392e04848fbca6ab5;hb=1dabf099b7c77fb0a80039f72cef34669df9b2e1;hp=d8ad4fc1a0e4b9ab357bae5531db4c6ecfdbd25e;hpb=d4c1851efd67ba892144ec32004c67701e72ce08;p=jalview.git diff --git a/src/jalview/datamodel/AlignmentAnnotation.java b/src/jalview/datamodel/AlignmentAnnotation.java index d8ad4fc..a3328b3 100755 --- a/src/jalview/datamodel/AlignmentAnnotation.java +++ b/src/jalview/datamodel/AlignmentAnnotation.java @@ -203,7 +203,7 @@ public class AlignmentAnnotation && firstChar != '-' && firstChar < jalview.schemes.ResidueProperties.aaIndex.length) { - if (jalview.schemes.ResidueProperties.aaIndex[firstChar] < 23) + if (jalview.schemes.ResidueProperties.aaIndex[firstChar] < 23) // TODO: parameterise to gap symbol number { nonSSLabel = true; } @@ -310,6 +310,15 @@ public class AlignmentAnnotation min = annotations[i].value; } } + // ensure zero is origin for min/max ranges on only one side of zero + if (min>0) { + min = 0; + } else { + if (max<0) + { + max = 0; + } + } } graphMin = min;