From 4e8acd323230fc1520129ee22e291ae12b236f1a Mon Sep 17 00:00:00 2001 From: John Scipione Date: Mon, 7 Apr 2014 16:35:19 -0400 Subject: [PATCH] ControlLook::DrawLabel() tiny style changes --- src/kits/interface/ControlLook.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/ControlLook.cpp b/src/kits/interface/ControlLook.cpp index fc5b68c872..56978447ed 100644 --- a/src/kits/interface/ControlLook.cpp +++ b/src/kits/interface/ControlLook.cpp @@ -1922,7 +1922,7 @@ BControlLook::DrawLabel(BView* view, const char* label, const BBitmap* icon, BSize(width - 1, height - 1), alignment); if (icon != NULL) { - BPoint location = alignedRect.LeftTop(); + BPoint location(alignedRect.LeftTop()); if (icon->Bounds().Height() + 1 < height) location.y += ceilf((height - icon->Bounds().Height() - 1) / 2); @@ -1936,6 +1936,7 @@ BControlLook::DrawLabel(BView* view, const char* label, const BBitmap* icon, alignedRect.top + ceilf(fontHeight.ascent)); if (textHeight < height) location.y += ceilf((height - textHeight) / 2); + DrawLabel(view, truncatedLabel.String(), base, flags, location); }