Add end of consensus test for wrapped edit
authoramwaterhouse <Andrew Waterhouse>
Wed, 14 Sep 2005 15:43:55 +0000 (15:43 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 14 Sep 2005 15:43:55 +0000 (15:43 +0000)
src/jalview/gui/SeqCanvas.java

index 3cf7f9a..657b9d9 100755 (executable)
@@ -426,6 +426,12 @@ public class SeqCanvas extends JComponent
                     cWidth * av.charWidth, (int) clip.getBounds().getHeight());\r
             }\r
 \r
+            if (av.vconsensus!=null && av.alignment.getWidth() >= av.vconsensus.size())\r
+            {\r
+              endx = av.vconsensus.size() - 2;\r
+            }\r
+\r
+\r
             drawPanel(g, startRes, endx, 0, al.getHeight(), startRes, 0, ypos);\r
             g.setClip(clip);\r
             g.translate(-LABEL_WEST, 0);\r