summaryrefslogtreecommitdiff
path: root/plugingui/texturedbox.cc
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-16 12:55:19 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-16 12:55:19 +0200
commit7c074d96d8b6c93bf76bb093aab124c267287668 (patch)
tree65e92d332034cf4670e260d66aed6c6bfd2f9f67 /plugingui/texturedbox.cc
parent19b9cddf7d5ef3daac5cda481db492f28574d28d (diff)
Fix bug in TexturedBox where width and height were wrong.
Diffstat (limited to 'plugingui/texturedbox.cc')
-rw-r--r--plugingui/texturedbox.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugingui/texturedbox.cc b/plugingui/texturedbox.cc
index c0391c7..a03eecd 100644
--- a/plugingui/texturedbox.cc
+++ b/plugingui/texturedbox.cc
@@ -50,6 +50,8 @@ TexturedBox::TexturedBox(ImageCache& image_cache, const std::string& filename,
, dy1(dy1)
, dy2(dy2)
, dy3(dy3)
+ , _width(dx1 + dx2 + dx3)
+ , _height(dy1 + dy2 + dy3)
{
}