Add null check to set imagebox to blank state
This commit is contained in:
parent
7818fd3dba
commit
ffda3b0c4c
|
@ -91,7 +91,7 @@ function imagebox:set_image(image)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
image = surface.load(image)
|
image = image and surface.load(image)
|
||||||
|
|
||||||
if image then
|
if image then
|
||||||
local w = image.width
|
local w = image.width
|
||||||
|
|
Loading…
Reference in New Issue