dont drag beyond end of alignment
authoramwaterhouse <Andrew Waterhouse>
Mon, 18 Apr 2005 08:08:05 +0000 (08:08 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 18 Apr 2005 08:08:05 +0000 (08:08 +0000)
src/jalview/gui/SeqPanel.java

index 0b84fa5..3bc9bc5 100755 (executable)
@@ -499,8 +499,8 @@ public class SeqPanel extends JPanel
     if(stretchGroup==null)\r
       return;\r
 \r
-    if(res>av.alignment.getWidth()-2)\r
-      res = av.alignment.getWidth()-2;\r
+    if(res>av.alignment.getWidth())\r
+      res = av.alignment.getWidth()-1;\r
 \r
 \r
     if(stretchGroup.getEndRes()==res)\r