X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FAnnotation.java;h=f6919cd36058cbfdacf9503e3aee84ac2bf516de;hb=4b7d3640209c4434d569c746672cf9eed4250ace;hp=8de8eb25847d05284b17e8e442e83e070a8848bc;hpb=136c0793b90b72b928c4d77dc109dd5c644e00d3;p=jalview.git diff --git a/src/jalview/datamodel/Annotation.java b/src/jalview/datamodel/Annotation.java index 8de8eb2..f6919cd 100755 --- a/src/jalview/datamodel/Annotation.java +++ b/src/jalview/datamodel/Annotation.java @@ -51,7 +51,9 @@ public class Annotation */ public char secondaryStructure = ' '; - /** Score for the position - used in histograms, line graphs and for shading */ + /** + * Score for the position - used in histograms, line graphs and for shading + */ public float value; /** Colour for position */ @@ -206,10 +208,13 @@ public class Annotation public boolean isWhitespace() { return ((value == 0f) - && ((description == null) || (description.trim() - .length() == 0)) - && ((displayCharacter == null) || (displayCharacter - .trim().length() == 0)) - && (secondaryStructure == '\0' || (secondaryStructure == ' ')) && colour == null); + && ((description == null) || (description.trim().length() == 0)) + && ((displayCharacter == null) + || (displayCharacter.trim().length() == 0) + || (displayCharacter.equals(" ."))) // RNA Stockholm blank + // displayCharacter can + // end up like this + && (secondaryStructure == '\0' || (secondaryStructure == ' ')) + && colour == null); } }