From 833d51dab7947d82ffe5a826f6282cce358a4d57 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 21 Jan 2005 18:31:40 +0000 Subject: [PATCH] if stretchGroup is null, set avRubberbandGroup new group --- src/jalview/gui/SeqPanel.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 1.7.10.2