vrld/suit

variable 'draw' not declared for label when using strict.lua

martinfelis opened this issue · 0 comments

Error:

Error: libs/Quickie/label.lua:56: variable 'draw' is not declared tack traceback:
[C]: in function 'error'
libs/strict.lua:30: in function <libs/strict.lua:28>
libs/Quickie/label.lua:56: in function 'Label'

To fix it replace label.lua line 56:

    core.registerDraw(id, draw or core.style.Label,

with

    core.registerDraw(id, w.draw or core.style.Label,

and strict.lua is happpy.

Quickie rulez!
Have a nice day.