summaryrefslogtreecommitdiff
path: root/src/resources/theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/theme.cpp')
-rw-r--r--src/resources/theme.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/theme.cpp b/src/resources/theme.cpp
index 2845f91e..fa5f1a7d 100644
--- a/src/resources/theme.cpp
+++ b/src/resources/theme.cpp
@@ -695,7 +695,7 @@ void Theme::readSkinStateImgNode(XML::Node node, SkinState &state) const
border.right = right;
border.top = top;
border.bottom = bottom;
- border.image = image->getSubImage(x, y, width, height);
+ border.image.reset(image->getSubImage(x, y, width, height));
node.attribute("fill", border.fillMode);
}