summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/theme.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp
index 90c351476..067ececda 100644
--- a/src/gui/theme.cpp
+++ b/src/gui/theme.cpp
@@ -440,8 +440,10 @@ Skin *Theme::readSkin(const std::string &filename, const bool full)
partNode, "xpos", 0) + globalXPos;
helper.yPos = XML::getProperty(
partNode, "ypos", 0) + globalYPos;
- helper.width = XML::getProperty(partNode, "width", 1);
- helper.height = XML::getProperty(partNode, "height", 1);
+ helper.width = XML::getProperty(partNode, "width", 0);
+ helper.height = XML::getProperty(partNode, "height", 0);
+ if (!helper.width || !helper.height)
+ continue;
helper.image = dBorders;
helper.rect = border;