summaryrefslogtreecommitdiff
path: root/src/gui/skin.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-24 17:29:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-25 22:08:19 +0300
commit14f55eb8c6e44763e70046b9661bd056280226a5 (patch)
treed255d2765b33f10f2928fa4da3f0bd45f477cea6 /src/gui/skin.cpp
parente42d8efbde5c2a560d3ed47347281422a76be22f (diff)
downloadmv-14f55eb8c6e44763e70046b9661bd056280226a5.tar.gz
mv-14f55eb8c6e44763e70046b9661bd056280226a5.tar.bz2
mv-14f55eb8c6e44763e70046b9661bd056280226a5.tar.xz
mv-14f55eb8c6e44763e70046b9661bd056280226a5.zip
Add missing non null attributes into gui directory.
Diffstat (limited to 'src/gui/skin.cpp')
-rw-r--r--src/gui/skin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/skin.cpp b/src/gui/skin.cpp
index 5ffd3c7c9..602d7204e 100644
--- a/src/gui/skin.cpp
+++ b/src/gui/skin.cpp
@@ -42,10 +42,10 @@ Skin::Skin(ImageRect *const restrict skin,
mFilePath(filePath),
mName(name),
mBorder(skin),
- mCloseImage(images->grid[0]),
- mCloseImageHighlighted(images->grid[1]),
- mStickyImageUp(images->grid[2]),
- mStickyImageDown(images->grid[3]),
+ mCloseImage(images ? images->grid[0] : nullptr),
+ mCloseImageHighlighted(images ? images->grid[1] : nullptr),
+ mStickyImageUp(images ? images->grid[2] : nullptr),
+ mStickyImageDown(images ? images->grid[3] : nullptr),
mPadding(padding),
mTitlePadding(titlePadding),
mOptions(options)