Signed-off-by: Robin Rosenberg <robin.rosenberg@xxxxxxxxxx> --- .../org/spearce/jgit/awtui/AWTPlotRenderer.java | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/awtui/AWTPlotRenderer.java b/org.spearce.jgit/src/org/spearce/jgit/awtui/AWTPlotRenderer.java index dc785ec..b6b715c 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/awtui/AWTPlotRenderer.java +++ b/org.spearce.jgit/src/org/spearce/jgit/awtui/AWTPlotRenderer.java @@ -109,10 +109,10 @@ protected void drawBoundaryDot(final int x, final int y, final int w, @Override protected void drawText(final String msg, final int x, final int y) { - final int texty = g.getFontMetrics().getHeight() - - g.getFontMetrics().getDescent(); + final int texth = g.getFontMetrics().getHeight(); + final int y0 = y - texth/2 + (cell.getHeight() - texth)/2; g.setColor(cell.getForeground()); - g.drawString(msg, x, texty - (cell.getHeight() - y * 2)); + g.drawString(msg, x, y0 + texth - g.getFontMetrics().getDescent()); } @Override -- 1.6.0.1.310.gf789d0.dirty -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html