From: amwaterhouse Date: Fri, 21 Jan 2005 18:31:40 +0000 (+0000) Subject: if stretchGroup is null, set avRubberbandGroup new group X-Git-Tag: Release_2_0~739 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=833d51dab7947d82ffe5a826f6282cce358a4d57;p=jalview.git if stretchGroup is null, set avRubberbandGroup new group --- diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 468fadb..7b3fae3 100755 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -326,7 +326,11 @@ public class SeqPanel extends JPanel stretchGroup = av.getRubberbandGroup(); if(stretchGroup == null) - stretchGroup = av.alignment.findGroup((Sequence)av.getAlignment().getSequenceAt(seq)); + { + stretchGroup = av.alignment.findGroup( (Sequence) av.getAlignment(). + getSequenceAt(seq)); + av.setRubberbandGroup( stretchGroup ); + } else if(!stretchGroup.sequences.contains((Sequence)av.getAlignment().getSequenceAt(seq)) || stretchGroup.getStartRes()>res @@ -379,7 +383,6 @@ public class SeqPanel extends JPanel seqCanvas.paintFlag = true; repaint(); - } boolean changeEndSeq = false;