From a83810ff98dde4f414fa348af95f41ee852b3576 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 25 Jan 2005 17:06:09 +0000 Subject: [PATCH] clustalColour bug fixed, clear selection --- src/jalview/gui/AlignFrame.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index f5d2e0c..b0d1b32 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -33,6 +33,7 @@ public class AlignFrame extends GAlignFrame public AlignFrame(AlignmentI al) { super(); + viewport = new AlignViewport(al,true,true,true,false); alignPanel = new AlignmentPanel(this, viewport); getContentPane().add(alignPanel, java.awt.BorderLayout.CENTER); @@ -222,6 +223,7 @@ public class AlignFrame extends GAlignFrame public void deselectAllSequenceMenuItem_actionPerformed(ActionEvent e) { + viewport.setRubberbandGroup(null); viewport.getSelection().clear(); PaintRefresher.Refresh(null); } @@ -474,7 +476,7 @@ public class AlignFrame extends GAlignFrame } - public void Colour_actionPerformed(ActionEvent e) + public void clustalColour_actionPerformed(ActionEvent e) { viewport.setGlobalColourScheme(new ClustalxColourScheme( )); conservationMenuItem.setSelected(false); -- 1.7.10.2