diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-01-30 23:10:45 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-01-30 23:10:45 +0300 |
commit | 6266c8c8d379bf05936a04e744343ef4b2d8775b (patch) | |
tree | 237894e249444037e14d34b3f4162dd1cd10e581 /src/gui/widgets/avatarlistbox.cpp | |
parent | 312e9e130c7afa2fb2dcd37df7d9c8fd9c45ac5b (diff) | |
download | plus-6266c8c8d379bf05936a04e744343ef4b2d8775b.tar.gz plus-6266c8c8d379bf05936a04e744343ef4b2d8775b.tar.bz2 plus-6266c8c8d379bf05936a04e744343ef4b2d8775b.tar.xz plus-6266c8c8d379bf05936a04e744343ef4b2d8775b.zip |
Fix error and code style in avatarlistbox.
Diffstat (limited to 'src/gui/widgets/avatarlistbox.cpp')
-rw-r--r-- | src/gui/widgets/avatarlistbox.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/src/gui/widgets/avatarlistbox.cpp b/src/gui/widgets/avatarlistbox.cpp index ff62b0155..0e3135b03 100644 --- a/src/gui/widgets/avatarlistbox.cpp +++ b/src/gui/widgets/avatarlistbox.cpp @@ -48,8 +48,8 @@ AvatarListBox::AvatarListBox(const Widget2 *const widget, ListBox(widget, model, "avatarlistbox.xml"), mShowGender(config.getBoolValue("showgender")), mShowLevel(config.getBoolValue("showlevel")), - mHighlightColor(getThemeColor(Theme::HIGHLIGHT)), - mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0) + mImagePadding(mSkin ? mSkin->getOption("imagePadding") : 0), + mHighlightColor(getThemeColor(Theme::HIGHLIGHT)) { instances++; @@ -269,7 +269,8 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) { if (a->getType() == MapItem::SEPARATOR) { - boldFont->drawString(graphics, text, mImagePadding + mPadding, y + mPadding); + boldFont->drawString(graphics, text, + mImagePadding + mPadding, y + mPadding); } else { @@ -280,9 +281,15 @@ void AvatarListBox::draw(gcn::Graphics *gcnGraphics) else { if (a->getType() == MapItem::SEPARATOR) - font->drawString(graphics, text, mImagePadding + mPadding, y + mPadding); + { + font->drawString(graphics, text, mImagePadding + mPadding, + y + mPadding); + } else - font->drawString(graphics, text, 15 + mImagePadding + mPadding, y + mPadding); + { + font->drawString(graphics, text, 15 + mImagePadding + mPadding, + y + mPadding); + } } } |