From 35b450cd253e9f92887d74491d72cc56725f54e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 24 Feb 2008 20:25:17 +0000 Subject: [PATCH] Draw the label right at origin in B_ALIGN_LEFT mode. Should improve alignment with other controls. (BTextControl patch with the same change is upcomming, but it includes many other changes I didn't want to mix in.) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24100 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/MenuField.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/interface/MenuField.cpp b/src/kits/interface/MenuField.cpp index d59ade1406..d2fb091afd 100644 --- a/src/kits/interface/MenuField.cpp +++ b/src/kits/interface/MenuField.cpp @@ -790,15 +790,15 @@ BMenuField::DrawLabel(BRect bounds, BRect update) float x; switch (fAlign) { case B_ALIGN_RIGHT: - x = fDivider - fLayoutData->label_width - 3.0f; + x = fDivider - fLayoutData->label_width - 3.0; break; case B_ALIGN_CENTER: - x = fDivider - fLayoutData->label_width / 2.0f; + x = fDivider - fLayoutData->label_width / 2.0; break; default: - x = 3.0f; + x = 0.0; break; }