diff options
Diffstat (limited to 'plugingui/image.cc')
-rw-r--r-- | plugingui/image.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugingui/image.cc b/plugingui/image.cc index 54fd15e..1b858ad 100644 --- a/plugingui/image.cc +++ b/plugingui/image.cc @@ -91,6 +91,11 @@ void Image::setError() { valid = false; Resource rc(":resources/png_error"); + if(!rc.valid()) + { + _width = _height = 0u; + return; + } const unsigned char* ptr = (const unsigned char*)rc.data(); |