summaryrefslogtreecommitdiff
path: root/plugingui/image.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-01-28 19:34:06 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-02-03 16:05:58 +0100
commit73bfd66285f1697abd3cffce4b12e09df814ecce (patch)
tree8fe987f94fe7a7657ab23d1ac255e8ed83e8128c /plugingui/image.cc
parentcd8c6ffd87e8c53724d608c4084305c67c371548 (diff)
Integrate clicky-kit with DOM to get click colours, image and image map from the drumkit xml.
Diffstat (limited to 'plugingui/image.cc')
-rw-r--r--plugingui/image.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/image.cc b/plugingui/image.cc
index fc28d11..4b5622e 100644
--- a/plugingui/image.cc
+++ b/plugingui/image.cc
@@ -48,6 +48,11 @@ Image::Image(const std::string& filename)
: filename(filename)
{
Resource rc(filename);
+ if(!rc.valid())
+ {
+ setError();
+ return;
+ }
load(rc.data(), rc.size());
}