if stretchGroup is null, set avRubberbandGroup new group
authoramwaterhouse <Andrew Waterhouse>
Fri, 21 Jan 2005 18:31:40 +0000 (18:31 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 21 Jan 2005 18:31:40 +0000 (18:31 +0000)
src/jalview/gui/SeqPanel.java

index 468fadb..7b3fae3 100755 (executable)
@@ -326,7 +326,11 @@ public class SeqPanel extends JPanel
     stretchGroup = av.getRubberbandGroup();\r
 \r
     if(stretchGroup == null)\r
-        stretchGroup = av.alignment.findGroup((Sequence)av.getAlignment().getSequenceAt(seq));\r
+     {\r
+       stretchGroup = av.alignment.findGroup( (Sequence) av.getAlignment().\r
+                                             getSequenceAt(seq));\r
+       av.setRubberbandGroup( stretchGroup );\r
+     }\r
 \r
     else if(!stretchGroup.sequences.contains((Sequence)av.getAlignment().getSequenceAt(seq))\r
             || stretchGroup.getStartRes()>res\r
@@ -379,7 +383,6 @@ public class SeqPanel extends JPanel
     seqCanvas.paintFlag = true;\r
     repaint();\r
 \r
-\r
   }\r
 \r
   boolean changeEndSeq = false;\r