From: kiramt Date: Mon, 24 Apr 2017 10:18:26 +0000 (+0100) Subject: JAL-2439 Fixed opposite out-by-one problem in wrapped panels X-Git-Tag: Release_2_10_3b1~307^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f5d913e184c4bd83448d0c20093e079ae7af107a;p=jalview.git JAL-2439 Fixed opposite out-by-one problem in wrapped panels --- diff --git a/src/jalview/appletgui/SeqCanvas.java b/src/jalview/appletgui/SeqCanvas.java index 0fd1e53..89df11f 100755 --- a/src/jalview/appletgui/SeqCanvas.java +++ b/src/jalview/appletgui/SeqCanvas.java @@ -501,7 +501,7 @@ public class SeqCanvas extends Panel g.setClip(0, 0, cWidth * avcharWidth, canvasHeight); } - drawPanel(g, startRes, endx, 0, al.getHeight(), ypos); + drawPanel(g, startRes, endx, 0, al.getHeight() - 1, ypos); g.setClip(null); if (av.isShowAnnotation()) diff --git a/src/jalview/gui/SeqCanvas.java b/src/jalview/gui/SeqCanvas.java index 19464ae..64e5fdc 100755 --- a/src/jalview/gui/SeqCanvas.java +++ b/src/jalview/gui/SeqCanvas.java @@ -588,7 +588,7 @@ public class SeqCanvas extends JComponent (int) clip.getBounds().getHeight()); } - drawPanel(g, startRes, endx, 0, al.getHeight(), ypos); + drawPanel(g, startRes, endx, 0, al.getHeight() - 1, ypos); if (av.isShowAnnotation()) {