diff options
author | Jared Adams <jaxad0127@gmail.com> | 2010-02-08 16:31:46 -0700 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-02-08 16:31:46 -0700 |
commit | 401f9598674216edb373c647596ea92a63bc65b2 (patch) | |
tree | 02f57b51f9e0642227ed2c3f4696524443ff7086 /src/gui | |
parent | 308302f858d24d2cc1b1601b100324e2baa50765 (diff) | |
download | mana-client-401f9598674216edb373c647596ea92a63bc65b2.tar.gz mana-client-401f9598674216edb373c647596ea92a63bc65b2.tar.bz2 mana-client-401f9598674216edb373c647596ea92a63bc65b2.tar.xz mana-client-401f9598674216edb373c647596ea92a63bc65b2.zip |
Fix finding width of bold text
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |