summaryrefslogtreecommitdiff
path: root/src/gui/listbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/listbox.cpp')
-rw-r--r--src/gui/listbox.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/listbox.cpp b/src/gui/listbox.cpp
index 643d234e..e56ddeeb 100644
--- a/src/gui/listbox.cpp
+++ b/src/gui/listbox.cpp
@@ -62,8 +62,7 @@ void ListBox::draw(gcn::Graphics *graphics)
// Draw the list elements
graphics->setColor(gcn::Color(0, 0, 0, 255));
- for (int i = 0, y = 0;
- i < mListModel->getNumberOfElements();
+ for (int i = 0, y = 0; i < mListModel->getNumberOfElements();
++i, y += fontHeight)
{
graphics->drawText(mListModel->getElementAt(i), 1, y);