}
this.av = av;
+ boolean selected=av.getSelectionGroup()!=null && av.getSelectionGroup().getSize()>0;
AlignmentView seqstrings = av
- .getAlignmentView(av.getSelectionGroup() != null);
+ .getAlignmentView(selected);
boolean nucleotide = av.getAlignment().isNucleotide();
SequenceI[] seqs;
- if (av.getSelectionGroup() == null)
+ if (!selected)
{
seqs = av.getAlignment().getSequencesArray();
}
{
int start, end;
SequenceI[] seqs;
- AlignmentView seqStrings = av.getAlignmentView(av
- .getSelectionGroup() != null);
- if (av.getSelectionGroup() == null)
+ boolean selview=(av
+ .getSelectionGroup() != null) && (av
+ .getSelectionGroup().getSize()>1);
+ AlignmentView seqStrings = av.getAlignmentView(selview);
+ if (!selview)
{
start = 0;
end = av.getAlignment().getWidth();
{
TreePanel tp;
- if (viewport.getSelectionGroup() != null)
+ if (viewport.getSelectionGroup() != null && viewport.getSelectionGroup().getSize()>0)
{
if (viewport.getSelectionGroup().getSize() < 3)
{
this.ap = ap;
boolean sameLength = true;
-
+ boolean selected=av.getSelectionGroup()!=null && av.getSelectionGroup().getSize()>0;
AlignmentView seqstrings = av
- .getAlignmentView(av.getSelectionGroup() != null);
+ .getAlignmentView(selected);
boolean nucleotide = av.getAlignment().isNucleotide();
SequenceI[] seqs;
- if (av.getSelectionGroup() == null)
+ if (!selected)
{
seqs = av.getAlignment().getSequencesArray();
}
{
int start, end;
SequenceI[] seqs;
- AlignmentView seqStrings = av.getAlignmentView(av
- .getSelectionGroup() != null);
- if (av.getSelectionGroup() == null)
+ boolean selview=av
+ .getSelectionGroup() != null & av
+ .getSelectionGroup().getSize()>1;
+ AlignmentView seqStrings = av.getAlignmentView(selview);
+ if (!selview)
{
start = 0;
end = av.getAlignment().getWidth();