From a9777c7a016fd245cc7be2cd6f56e3f2d9f523c0 Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 27 May 2005 09:55:12 +0000 Subject: [PATCH] recovered changes from v 1.84 --- src/jalview/gui/AlignFrame.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index d98084f..92341df 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -417,11 +417,12 @@ public class AlignFrame extends GAlignFrame protected void delete_actionPerformed(ActionEvent e) { boolean seqsdeleted=false; - addHistoryItem(new HistoryItem("Delete Sequences", viewport.alignment, HistoryItem.HIDE)); if (viewport.getSelectionGroup() == null) return; + addHistoryItem(new HistoryItem("Delete Sequences", viewport.alignment, HistoryItem.HIDE)); + SequenceGroup sg = viewport.getSelectionGroup(); for (int i=0;i < sg.sequences.size(); i++) { @@ -994,7 +995,7 @@ public class AlignFrame extends GAlignFrame public void removeRedundancyMenuItem_actionPerformed(ActionEvent e) { - RedundancyPanel sp = new RedundancyPanel(alignPanel); + RedundancyPanel sp = new RedundancyPanel(this, alignPanel); JInternalFrame frame = new JInternalFrame(); frame.setContentPane(sp); Desktop.addInternalFrame(frame, "Redundancy threshold selection", 400, 100, false); -- 1.7.10.2