SequenceI s = av.getAlignment().getSequenceAt(i);
gg.setFont(italic);
- if (av.hasHiddenRows())
+ if (av.isDisplayReferenceSeq() || av.hasHiddenRows())
{
setHiddenFont(s);
}
}
gg.setFont(italic);
// boolean isrep=false;
- if (av.hasHiddenRows())
+ if (av.isDisplayReferenceSeq() || av.hasHiddenRows())
{
// isrep =
setHiddenFont(seq);
for (int i = starty; i < alheight; i++)
{
SequenceI s = av.getAlignment().getSequenceAt(i);
- if (av.hasHiddenRows())
+ if (av.isDisplayReferenceSeq() || av.hasHiddenRows())
{
setHiddenFont(s);
}
continue;
}
- if (av.hasHiddenRows())
+ if (av.isDisplayReferenceSeq() || av.hasHiddenRows())
{
setHiddenFont(sequence);
}
public boolean isHiddenRepSequence(SequenceI seq)
{
- return hiddenRepSequences != null
- && hiddenRepSequences.containsKey(seq);
+ return alignment.getSeqrep()==seq || (hiddenRepSequences != null
+ && hiddenRepSequences.containsKey(seq));
}
public SequenceGroup getRepresentedSequences(SequenceI seq)