From 69d3d826258d6d6c021b7b0db5f7b66e22d89f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 31 Aug 2005 00:15:28 +0000 Subject: [PATCH] No longer cuts the "Signature" label in certain situations. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14092 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bemail/BmapButton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/apps/bemail/BmapButton.cpp b/src/apps/bemail/BmapButton.cpp index 5fbeef9af1..54934290f7 100644 --- a/src/apps/bemail/BmapButton.cpp +++ b/src/apps/bemail/BmapButton.cpp @@ -190,10 +190,10 @@ BmapButton::Draw(BRect updateRect) renderFont = *be_plain_font; renderFont.GetHeight(&fheight); SetFont(&renderFont); - + labelHeight = fheight.leading + fheight.ascent + fheight.descent + 1; - labelWidth = renderFont.StringWidth(Label())-2; - + labelWidth = renderFont.StringWidth(Label()); + BRect textRect; textRect.left = (bounds.right-bounds.left-labelWidth+1)/2; textRect.right = textRect.left+labelWidth;