Use selectionGroup to find chosen sequences
authoramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:13:32 +0000 (13:13 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 20 Sep 2005 13:13:32 +0000 (13:13 +0000)
src/jalview/gui/PCAPanel.java

index 7e893eb..8685b3e 100755 (executable)
@@ -51,7 +51,7 @@ public class PCAPanel extends GPCAPanel implements Runnable
      * @param av DOCUMENT ME!\r
      * @param s DOCUMENT ME!\r
      */\r
-    public PCAPanel(AlignViewport av, SequenceI[] s)\r
+    public PCAPanel(AlignViewport av)\r
     {\r
         this.av = av;\r
 \r
@@ -60,13 +60,12 @@ public class PCAPanel extends GPCAPanel implements Runnable
         {\r
             seqs = new Sequence[av.getSelectionGroup().getSize()];\r
 \r
-            for (int i = 0; i < s.length; i++)\r
+            for (int i = 0; i < av.getSelectionGroup().getSize(); i++)\r
             {\r
                 seqs[i] = av.getSelectionGroup().getSequenceAt(i);\r
             }\r
         }\r
-\r
-        if (s == null)\r
+        else\r
         {\r
             seqs = new Sequence[av.getAlignment().getHeight()];\r
 \r