diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-12 13:28:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-12 13:28:39 +0300 |
commit | e17684f0666d3d17f9c468dab478d3992a633600 (patch) | |
tree | 3a0e17b22c40f27875f60f948cf5d25214398df6 | |
parent | 95100fc5191ea6e2e379ca73cd4e67bee4376ba1 (diff) | |
download | manaverse-e17684f0666d3d17f9c468dab478d3992a633600.tar.gz manaverse-e17684f0666d3d17f9c468dab478d3992a633600.tar.bz2 manaverse-e17684f0666d3d17f9c468dab478d3992a633600.tar.xz manaverse-e17684f0666d3d17f9c468dab478d3992a633600.zip |
Fix text padding in extendedlistbox.
-rw-r--r-- | src/gui/widgets/extendedlistbox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/extendedlistbox.cpp b/src/gui/widgets/extendedlistbox.cpp index accb52ddc..3126b14b0 100644 --- a/src/gui/widgets/extendedlistbox.cpp +++ b/src/gui/widgets/extendedlistbox.cpp @@ -75,7 +75,7 @@ void ExtendedListBox::draw(gcn::Graphics *graphics) const int height = getRowHeight(); const int pad2 = 2 + mPadding; - int textPos = (height - font->getHeight()) / pad2; + int textPos = (height - font->getHeight()) / 2 + mPadding; if (textPos < 0) textPos = 0; |