From: amwaterhouse Date: Wed, 14 Sep 2005 15:43:55 +0000 (+0000) Subject: Add end of consensus test for wrapped edit X-Git-Tag: Release_2_05b~15 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=ae7bafde5bb6247e8165b7f0b647023f8d83ff24;p=jalview.git Add end of consensus test for wrapped edit --- diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 3cf7f9a..657b9d9 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -426,6 +426,12 @@ public class SeqCanvas extends JComponent cWidth * av.charWidth, (int) clip.getBounds().getHeight()); } + if (av.vconsensus!=null && av.alignment.getWidth() >= av.vconsensus.size()) + { + endx = av.vconsensus.size() - 2; + } + + drawPanel(g, startRes, endx, 0, al.getHeight(), startRes, 0, ypos); g.setClip(clip); g.translate(-LABEL_WEST, 0);