From 7a1a7eea9501cd9e3841e996f4926cf1686be76a Mon Sep 17 00:00:00 2001 From: tcofoegbu Date: Thu, 6 Aug 2015 11:40:15 +0100 Subject: [PATCH] JAL-1824 corrected copy'n'paste error introduced from JAL-1821 refactor which causes the IndexOutOfBoundException --- src/jalview/gui/StructureChooser.java | 3 ++- src/jalview/jbgui/GStructureChooser.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/StructureChooser.java b/src/jalview/gui/StructureChooser.java index d5e4cbc..976b77b 100644 --- a/src/jalview/gui/StructureChooser.java +++ b/src/jalview/gui/StructureChooser.java @@ -728,9 +728,10 @@ public class StructureChooser extends GStructureChooser .toString() .toLowerCase(); pdbEntriesToView[count++] = cachedEntryMap.get(entryKey); - SequenceI selectedSeq = (SequenceI) tbl_summary.getValueAt(row, + SequenceI selectedSeq = (SequenceI) tbl_local_pdb.getValueAt(row, refSeqColIndex); selectedSeqsToView.add(selectedSeq); + } SequenceI[] selectedSeqs = selectedSeqsToView .toArray(new SequenceI[selectedSeqsToView.size()]); diff --git a/src/jalview/jbgui/GStructureChooser.java b/src/jalview/jbgui/GStructureChooser.java index d335188..7daf09b 100644 --- a/src/jalview/jbgui/GStructureChooser.java +++ b/src/jalview/jbgui/GStructureChooser.java @@ -238,7 +238,7 @@ public abstract class GStructureChooser extends JPanel implements cmb_filterOption.setFont(new java.awt.Font("Verdana", 0, 12)); chk_invertFilter.setFont(new java.awt.Font("Verdana", 0, 12)); chk_rememberSettings.setFont(new java.awt.Font("Verdana", 0, 12)); - + chk_rememberSettings.setVisible(false); txt_search.setToolTipText(MessageManager .getString("label.enter_pdb_id")); -- 1.7.10.2