summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-09-14 01:08:12 +0300
committerAndrei Karas <akaras@inbox.ru>2016-09-14 01:08:12 +0300
commita68ab16c9d48264298861e9629604eeaa2bea188 (patch)
treea59b70a9d89b7920d312ce8e894abfe0f187b4bd /src/gui/widgets
parent0fc8851faef219be6a3e161946fd6a09930efeb0 (diff)
downloadplus-a68ab16c9d48264298861e9629604eeaa2bea188.tar.gz
plus-a68ab16c9d48264298861e9629604eeaa2bea188.tar.bz2
plus-a68ab16c9d48264298861e9629604eeaa2bea188.tar.xz
plus-a68ab16c9d48264298861e9629604eeaa2bea188.zip
Fix highlighted links drawing with bold text.
Diffstat (limited to 'src/gui/widgets')
-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)];