diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/label.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/widgets/label.cpp b/src/gui/widgets/label.cpp index 188da1bf4..4544510a2 100644 --- a/src/gui/widgets/label.cpp +++ b/src/gui/widgets/label.cpp @@ -48,9 +48,7 @@ Label::~Label() { mInstances --; if (mInstances == 0 && Theme::instance()) - { Theme::instance()->unload(mSkin); - } } void Label::init() @@ -60,8 +58,9 @@ void Label::init() { if (Theme::instance()) mSkin = Theme::instance()->load("label.xml", ""); - mInstances ++; } + mInstances ++; + if (mSkin) mPadding = mSkin->getPadding(); else |