clear selection once group defined
authoramwaterhouse <Andrew Waterhouse>
Wed, 9 Mar 2005 18:40:15 +0000 (18:40 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 9 Mar 2005 18:40:15 +0000 (18:40 +0000)
src/jalview/gui/PopupMenu.java

index 38c3250..c09093b 100755 (executable)
@@ -324,6 +324,10 @@ public class PopupMenu extends JPopupMenu
     if( superG !=null)\r
       superG.setSuperGroupProperties( sg );\r
 \r
+\r
+    //once group is defined, remove selection rubberband\r
+    ap.av.setRubberbandGroup(null);\r
+\r
     ap.seqPanel.seqCanvas.paintFlag=true;\r
     ap.seqPanel.repaint();\r
   }\r
@@ -490,6 +494,7 @@ public class PopupMenu extends JPopupMenu
 \r
     // this method won't add a new group if it already exists\r
     ap.av.alignment.addGroup(sg);\r
+\r
     return sg;\r
   }\r
 \r