From e17684f0666d3d17f9c468dab478d3992a633600 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 12 Jun 2013 13:28:39 +0300 Subject: Fix text padding in extendedlistbox. --- src/gui/widgets/extendedlistbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets') 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; -- cgit v1.2.3-70-g09d2