From: amwaterhouse Date: Tue, 20 Sep 2005 13:13:32 +0000 (+0000) Subject: Use selectionGroup to find chosen sequences X-Git-Tag: Release_2_06~44 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=48b0a1554f4885581d99dac216a83780ceceb41a;p=jalview.git Use selectionGroup to find chosen sequences --- diff --git a/src/jalview/gui/PCAPanel.java b/src/jalview/gui/PCAPanel.java index 7e893eb..8685b3e 100755 --- a/src/jalview/gui/PCAPanel.java +++ b/src/jalview/gui/PCAPanel.java @@ -51,7 +51,7 @@ public class PCAPanel extends GPCAPanel implements Runnable * @param av DOCUMENT ME! * @param s DOCUMENT ME! */ - public PCAPanel(AlignViewport av, SequenceI[] s) + public PCAPanel(AlignViewport av) { this.av = av; @@ -60,13 +60,12 @@ public class PCAPanel extends GPCAPanel implements Runnable { seqs = new Sequence[av.getSelectionGroup().getSize()]; - for (int i = 0; i < s.length; i++) + for (int i = 0; i < av.getSelectionGroup().getSize(); i++) { seqs[i] = av.getSelectionGroup().getSequenceAt(i); } } - - if (s == null) + else { seqs = new Sequence[av.getAlignment().getHeight()];