From: Jim Procter Date: Fri, 6 May 2016 13:21:53 +0000 (+0100) Subject: JAL-2100 centre triangles on hidden column vertical mark and place them below numbers... X-Git-Tag: Release_2_10_0~227^2~2^2~7 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c1721e201dc925699af7b9eb7c88868833c07ec9;p=jalview.git JAL-2100 centre triangles on hidden column vertical mark and place them below numbers on ruler --- diff --git a/src/jalview/gui/ScalePanel.java b/src/jalview/gui/ScalePanel.java index 909cbfb..108bf24 100755 --- a/src/jalview/gui/ScalePanel.java +++ b/src/jalview/gui/ScalePanel.java @@ -513,10 +513,10 @@ public class ScalePanel extends JPanel implements MouseMotionListener, continue; } - gg.fillPolygon(new int[] { res * avCharWidth - avCharHeight / 4, - res * avCharWidth + avCharHeight / 4, res * avCharWidth }, - new int[] { y - avCharHeight / 2, y - avCharHeight / 2, - y + 8 }, 3); + gg.fillPolygon(new int[] { + -1 + res * avCharWidth - avCharHeight / 4, + -1 + res * avCharWidth + avCharHeight / 4, + -1 + res * avCharWidth }, new int[] { y, y, y + 2 * yOf }, 3); } }