diff options
Diffstat (limited to 'src/gui/widgets/icon.cpp')
-rw-r--r-- | src/gui/widgets/icon.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/widgets/icon.cpp b/src/gui/widgets/icon.cpp index b35eb1d95..9cb42a9f7 100644 --- a/src/gui/widgets/icon.cpp +++ b/src/gui/widgets/icon.cpp @@ -30,9 +30,8 @@ #include "debug.h" Icon::Icon(const std::string &file) - : mImage(nullptr) + : mImage(ResourceManager::getInstance()->getImage(file)) { - mImage = ResourceManager::getInstance()->getImage(file); if (mImage) setSize(mImage->mBounds.w, mImage->mBounds.h); } |