drawable: Prevent collected drawables from being redrawn.

This commit is contained in:
Emmanuel Lepage Vallee 2016-09-07 00:41:10 -04:00
parent 35c0476c86
commit 12b72d6164
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ local function get_widget_context(self)
end end
local function do_redraw(self) local function do_redraw(self)
if type(self.drawable) ~= "drawable" then return end --FIXME See #1070
local surf = surface.load_silently(self.drawable.surface, false) local surf = surface.load_silently(self.drawable.surface, false)
-- The surface can be nil if the drawable's parent was already finalized -- The surface can be nil if the drawable's parent was already finalized
if not surf then return end if not surf then return end