From: amwaterhouse Date: Thu, 26 Oct 2006 09:37:18 +0000 (+0000) Subject: Dont scroll off width-1 X-Git-Tag: Release_2_2~228 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=baaf7e4a88b74ac587b78b9f964ea94b14238f59;p=jalview.git Dont scroll off width-1 --- diff --git a/src/jalview/appletgui/SeqPanel.java b/src/jalview/appletgui/SeqPanel.java index 8d42655..0596468 100755 --- a/src/jalview/appletgui/SeqPanel.java +++ b/src/jalview/appletgui/SeqPanel.java @@ -1266,7 +1266,7 @@ public class SeqPanel y = av.alignment.getHeight() -1; } - if(res>av.alignment.getWidth()) + if(res>=av.alignment.getWidth()) res = av.alignment.getWidth()-1; if (stretchGroup.getEndRes() == res) diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index b57305a..e51b13c 100755 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -1449,7 +1449,7 @@ public class SeqPanel extends JPanel implements MouseListener, return; } - if(res> av.alignment.getWidth()) + if(res>= av.alignment.getWidth()) { res = av.alignment.getWidth()-1; }