From a68292dd29321557a0cf01e8087573c197095bea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 24 Feb 2008 22:35:30 +0000 Subject: [PATCH] fh -> fontHeight git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24105 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/TextControl.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/kits/interface/TextControl.cpp b/src/kits/interface/TextControl.cpp index bc11c80e35..4cfc97bf2a 100644 --- a/src/kits/interface/TextControl.cpp +++ b/src/kits/interface/TextControl.cpp @@ -333,12 +333,11 @@ BTextControl::Draw(BRect updateRect) // label if (Label()) { - font_height fh; - GetFontHeight(&fh); + font_height fontHeight; + GetFontHeight(&fontHeight); - float y = Bounds().top - + (Bounds().Height() + 1 - fh.ascent - fh.descent) / 2 - + fh.ascent; + float y = Bounds().top + (Bounds().Height() + 1 - fontHeight.ascent + - fontHeight.descent) / 2 + fontHeight.ascent; float x; float labelWidth = StringWidth(Label());