From 401f9598674216edb373c647596ea92a63bc65b2 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Mon, 8 Feb 2010 16:31:46 -0700 Subject: Fix finding width of bold text --- src/gui/widgets/avatarlistbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets/avatarlistbox.cpp') diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index 69c3dfde..2c82d79c 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -115,7 +115,7 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) // Draw Name graphics->drawText(text, 15, y); - width = getFont()->getWidth(text) + 17; // Extra right padding + width = graphics->getFont()->getWidth(text) + 17; // Extra right padding if (width > newWidth) { -- cgit v1.2.3-70-g09d2