{\r
if (annotations != null)\r
{\r
+ boolean oneColour = true;\r
AlignmentAnnotation row;\r
String comma;\r
SequenceI refSeq = null;\r
}\r
\r
color = null;\r
+ oneColour = true;\r
\r
if (row.sequenceRef == null)\r
{\r
\r
if (row.annotations[j] != null)\r
{\r
+ if(color!=null && !color.equals(row.annotations[j].colour))\r
+ {\r
+ oneColour = false;\r
+ }\r
+\r
color = row.annotations[j].colour;\r
if (row.annotations[j].value != 0f)\r
{\r
\r
text.append("\n");\r
\r
- if (color != null && color != java.awt.Color.black)\r
+ if (color != null && color != java.awt.Color.black && oneColour)\r
{\r
colours.append("COLOUR\t"\r
+ row.label + "\t"\r
\r
}\r
\r
- if (displayChar.length() > 1\r
+ if (displayChar!=null\r
+ && displayChar.length() > 1\r
&& desc!=null\r
&& desc.length() == 1)\r
{\r