Fixes redraw top of group bug
authoramwaterhouse <Andrew Waterhouse>
Mon, 1 May 2006 13:22:58 +0000 (13:22 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 1 May 2006 13:22:58 +0000 (13:22 +0000)
src/jalview/appletgui/SeqCanvas.java

index c5b4324..3e47139 100755 (executable)
@@ -522,11 +522,10 @@ public class SeqCanvas
                       group.sequences.contains(av.alignment.getSequenceAt(\r
                               i)))\r
               {\r
-                if (bottom == -1)\r
+                if ((bottom == -1) &&\r
+                        !group.sequences.contains(\r
+                            av.alignment.getSequenceAt(i + 1)))\r
                 {\r
-                 if(i == endSeq-1 || // Dont check for i+1 if on the bottom row\r
-                  !group.sequences.contains(av.alignment.getSequenceAt(i+1 )))\r
-\r
                     bottom = sy + av.charHeight;\r
                 }\r
 \r