int y1)
{
if (seq == null)
- {
+ {
return; // fix for racecondition
}
int i = start;
charOffset = (av.getCharWidth() - fm.charWidth(s)) / 2;
graphics.drawString(String.valueOf(s),
- charOffset + av.getCharWidth()
- * (i - start), y1);
+ charOffset + av.getCharWidth() * (i - start), y1);
}
}
.charAt(0)
: av.getAlignmentConsensusAnnotation().annotations[position].displayCharacter
.charAt(0);
- if (conschar != '-'
+ if (!jalview.util.Comparison.isGap(conschar)
&& (sequenceChar == conschar || sequenceChar + CHAR_TO_UPPER == conschar))
{
sequenceChar = conservedChar;