summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-12 13:28:39 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-12 13:28:39 +0300
commite17684f0666d3d17f9c468dab478d3992a633600 (patch)
tree3a0e17b22c40f27875f60f948cf5d25214398df6 /src/gui/widgets
parent95100fc5191ea6e2e379ca73cd4e67bee4376ba1 (diff)
downloadplus-e17684f0666d3d17f9c468dab478d3992a633600.tar.gz
plus-e17684f0666d3d17f9c468dab478d3992a633600.tar.bz2
plus-e17684f0666d3d17f9c468dab478d3992a633600.tar.xz
plus-e17684f0666d3d17f9c468dab478d3992a633600.zip
Fix text padding in extendedlistbox.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/extendedlistbox.cpp2
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;