From 687aca6928c6be41c2693c6c0f5ab651a40e815e Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 14 Sep 2005 12:20:48 +0000 Subject: [PATCH] Use font size, not font height --- src/jalview/gui/TreeCanvas.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/gui/TreeCanvas.java b/src/jalview/gui/TreeCanvas.java index e89f441..79634f6 100755 --- a/src/jalview/gui/TreeCanvas.java +++ b/src/jalview/gui/TreeCanvas.java @@ -217,7 +217,7 @@ public class TreeCanvas extends JPanel implements MouseListener, Runnable, ? (PLACEHOLDER + node.getName()) : node.getName(); int charWidth = fm.stringWidth(name) + 3; - int charHeight = fm.getHeight(); + int charHeight = font.getSize(); Rectangle rect = new Rectangle(xend+10, ypos-charHeight/2, charWidth, charHeight); -- 1.7.10.2