From a12de8e31d4a86f61f23e4eb62ae62ff03462511 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 9 Mar 2005 18:40:15 +0000 Subject: [PATCH] clear selection once group defined --- src/jalview/gui/PopupMenu.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 38c3250..c09093b 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -324,6 +324,10 @@ public class PopupMenu extends JPopupMenu if( superG !=null) superG.setSuperGroupProperties( sg ); + + //once group is defined, remove selection rubberband + ap.av.setRubberbandGroup(null); + ap.seqPanel.seqCanvas.paintFlag=true; ap.seqPanel.repaint(); } @@ -490,6 +494,7 @@ public class PopupMenu extends JPopupMenu // this method won't add a new group if it already exists ap.av.alignment.addGroup(sg); + return sg; } -- 1.7.10.2