From: amwaterhouse Date: Mon, 18 Apr 2005 08:08:05 +0000 (+0000) Subject: dont drag beyond end of alignment X-Git-Tag: Release_2_0~391 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b42085fdaf6dbfad35130446b99406d6f183ea5a;p=jalview.git dont drag beyond end of alignment --- diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index 0b84fa5..3bc9bc5 100755 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -499,8 +499,8 @@ public class SeqPanel extends JPanel if(stretchGroup==null) return; - if(res>av.alignment.getWidth()-2) - res = av.alignment.getWidth()-2; + if(res>av.alignment.getWidth()) + res = av.alignment.getWidth()-1; if(stretchGroup.getEndRes()==res)