From c8feb125d3a159bcf5a7fe196fb1b886a46e5b52 Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 22 Sep 2009 12:56:31 +0000 Subject: [PATCH] allow the display character below a graph to be explicitly set to the empty string --- src/jalview/io/AnnotationFile.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/jalview/io/AnnotationFile.java b/src/jalview/io/AnnotationFile.java index 7f71df1..4c38bd2 100755 --- a/src/jalview/io/AnnotationFile.java +++ b/src/jalview/io/AnnotationFile.java @@ -625,7 +625,7 @@ public class AnnotationFile String desc = null, displayChar = null; char ss = ' '; // secondaryStructure float value = 0; - boolean parsedValue = false; + boolean parsedValue = false,dcset=false; // find colour here java.awt.Color colour = null; @@ -647,6 +647,12 @@ public class AnnotationFile token = st.nextToken().trim(); if (token.length() == 0) { + if (parsedValue && !dcset) + { + // allow the value below the bar/line to be empty + dcset=true; + displayChar = ""; + } continue; } -- 1.7.10.2