seals selection box if at bottom of alignment
authoramwaterhouse <Andrew Waterhouse>
Thu, 7 Apr 2005 16:57:57 +0000 (16:57 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 7 Apr 2005 16:57:57 +0000 (16:57 +0000)
src/jalview/gui/SeqPanel.java

index 3e47f4b..3595fe6 100755 (executable)
@@ -544,7 +544,7 @@ public class SeqPanel extends JPanel
     else if (y < oldSeq)\r
       dragDirection = -1;\r
 \r
-    while (y != oldSeq && oldSeq>0)\r
+    while (y != oldSeq && oldSeq>0 && y<av.alignment.getHeight())\r
     {\r
       // This routine ensures we don't skip any sequences, as the\r
       // selection is quite slow.\r