private char getDisplayChar(final boolean usesrep, int position,
char s, char c)
{
- // TODO - use currentSequenceGroup rather than alignemnt
+ // TODO - use currentSequenceGroup rather than alignment
// currentSequenceGroup.getConsensus()
char conschar = (usesrep) ? av.getAlignment().getSeqrep().getCharAt(position) : av.getAlignmentConsensusAnnotation().annotations[position].displayCharacter
.charAt(0);
- if (conschar != '-' && s == conschar)
+ if (!jalview.util.Comparison.isGap(conschar) && s == conschar)
{
s = c;
}
.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;