Use i, not index if not representedSeqs
authoramwaterhouse <Andrew Waterhouse>
Thu, 12 Oct 2006 13:35:17 +0000 (13:35 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 12 Oct 2006 13:35:17 +0000 (13:35 +0000)
src/jalview/appletgui/APopupMenu.java
src/jalview/gui/PopupMenu.java

index dca9da4..b3c8f20 100755 (executable)
@@ -639,7 +639,7 @@ public class APopupMenu
         }\r
         else if(!representGroup)\r
         {\r
-          hseqs[index++] = sg.getSequenceAt(index);\r
+          hseqs[index++] = sg.getSequenceAt(i);\r
         }\r
         }\r
 \r
index c2bf729..88ea11b 100755 (executable)
@@ -1145,7 +1145,7 @@ public class PopupMenu extends JPopupMenu
           }\r
           else if(!representGroup)\r
           {\r
-            hseqs[index++] = sg.getSequenceAt(index);\r
+            hseqs[index++] = sg.getSequenceAt(i);\r
           }\r
         }\r
 \r