From a68ab16c9d48264298861e9629604eeaa2bea188 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 14 Sep 2016 01:08:12 +0300 Subject: Fix highlighted links drawing with bold text. --- src/gui/widgets/browserbox.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/gui') 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)]; -- cgit v1.2.3-70-g09d2