From b42085fdaf6dbfad35130446b99406d6f183ea5a Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 18 Apr 2005 08:08:05 +0000 Subject: [PATCH] dont drag beyond end of alignment --- src/jalview/gui/SeqPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 1.7.10.2