From ae7bafde5bb6247e8165b7f0b647023f8d83ff24 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 14 Sep 2005 15:43:55 +0000 Subject: [PATCH] Add end of consensus test for wrapped edit --- src/jalview/gui/SeqCanvas.java | 6 ++++++ 1 file changed, 6 insertions(+) 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); -- 1.7.10.2