diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-16 20:43:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-16 20:43:05 +0300 |
commit | 381a271357c727df838ffe7958bf6ae16fd69804 (patch) | |
tree | 8ad1d9e05d7bc6b402ca31711309b649bd6eff8a /src/gui/widgets | |
parent | 44ca1b1c650e08e45de738b19513136e71e40349 (diff) | |
download | manaplus-381a271357c727df838ffe7958bf6ae16fd69804.tar.gz manaplus-381a271357c727df838ffe7958bf6ae16fd69804.tar.bz2 manaplus-381a271357c727df838ffe7958bf6ae16fd69804.tar.xz manaplus-381a271357c727df838ffe7958bf6ae16fd69804.zip |
fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/colorpage.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/colorpage.cpp b/src/gui/widgets/colorpage.cpp index bd37dbeeb..3673f9e9f 100644 --- a/src/gui/widgets/colorpage.cpp +++ b/src/gui/widgets/colorpage.cpp @@ -32,14 +32,13 @@ ColorPage::ColorPage(const Widget2 *const widget, gcn::ListModel *const listModel, const std::string &skin) : ListBox(widget, listModel, skin), - mItemPadding(mSkin ? mSkin->getOption("itemPadding") : 1) + mItemPadding(mSkin ? mSkin->getOption("itemPadding") : 1), + mRowHeight(13) { // addMouseListener(this); const gcn::Font *const font = getFont(); if (font) mRowHeight = font->getHeight() + 2 * mItemPadding; - else - mRowHeight = 13; adjustSize(); } |