~ubuntu-branches/ubuntu/trusty/manaplus/trusty

« back to all changes in this revision

Viewing changes to src/gui/widgets/label.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
 
110
110
void Label::adjustSize()
111
111
{
112
 
    gcn::Font *const font = getFont();
 
112
    const gcn::Font *const font = getFont();
113
113
    const int pad2 = 2 * mPadding;
114
114
    setWidth(font->getWidth(mCaption) + pad2);
115
115
    setHeight(font->getHeight() + pad2);