summaryrefslogtreecommitdiff
path: root/src/gui/widgets/browserbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r--src/gui/widgets/browserbox.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index a6d83f4d5..483d4e09e 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -773,8 +773,17 @@ int BrowserBox::calcHeight()
if (c == '<' && link < CAST_S32(mLinks.size()))
{
- const int size = font->getWidth(
- mLinks[CAST_SIZE(link)].caption) + 1;
+ int size;
+ if (bold)
+ {
+ size = boldFont->getWidth(
+ mLinks[CAST_SIZE(link)].caption) + 1;
+ }
+ else
+ {
+ size = font->getWidth(
+ mLinks[CAST_SIZE(link)].caption) + 1;
+ }
BrowserLink &linkRef = mLinks[CAST_SIZE(
link)];