From c1721e201dc925699af7b9eb7c88868833c07ec9 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 6 May 2016 14:21:53 +0100 Subject: [PATCH] JAL-2100 centre triangles on hidden column vertical mark and place them below numbers on ruler --- src/jalview/gui/ScalePanel.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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); } } -- 1.7.10.2