summaryrefslogtreecommitdiff
path: root/src/gui/skilldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-27 16:20:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-27 23:15:05 +0300
commitfa0ef1ff62b23e830c70f6168f6256a1937b8195 (patch)
tree3a81237a324839d7bff56ceac3c388a32b16b6ae /src/gui/skilldialog.cpp
parent697e5bbf3171b0ba1fbbc0bbe61461c7726bf1ce (diff)
downloadplus-fa0ef1ff62b23e830c70f6168f6256a1937b8195.tar.gz
plus-fa0ef1ff62b23e830c70f6168f6256a1937b8195.tar.bz2
plus-fa0ef1ff62b23e830c70f6168f6256a1937b8195.tar.xz
plus-fa0ef1ff62b23e830c70f6168f6256a1937b8195.zip
Fix font usage in some controls.
Diffstat (limited to 'src/gui/skilldialog.cpp')
-rw-r--r--src/gui/skilldialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index deefdbd77..8718cc470 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -102,7 +102,7 @@ class SkillListBox final : public ListBox
mTextPadding(mSkin ? mSkin->getOption("textPadding", 34) : 34),
mSpacing(mSkin ? mSkin->getOption("spacing", 0) : 0)
{
- mRowHeight = mainGraphics->getFont()->getHeight() * 2
+ mRowHeight = getFont()->getHeight() * 2
+ mSpacing + 2 * mPadding;
if (mRowHeight < 34)
mRowHeight = 34;