From 73bfd66285f1697abd3cffce4b12e09df814ecce Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 28 Jan 2019 19:34:06 +0100 Subject: Integrate clicky-kit with DOM to get click colours, image and image map from the drumkit xml. --- plugingui/image.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugingui/image.cc') 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()); } -- cgit v1.2.3