From 64f848c9d0efcde77814d7637dcf4e01d8e0f2d6 Mon Sep 17 00:00:00 2001 From: Ulrich Schmidt Date: Sat, 5 Nov 2016 19:16:18 +0100 Subject: [PATCH] removed local variable colors parameter "colors" can be used like a local variable. --- theme.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/theme.lua b/theme.lua index fe8b416..c052348 100644 --- a/theme.lua +++ b/theme.lua @@ -19,7 +19,7 @@ function theme.getColorForState(opt) end function theme.drawBox(x,y,w,h, colors, cornerRadius) - local colors = colors or theme.getColorForState(opt) + colors = colors or theme.getColorForState(opt) cornerRadius = cornerRadius or theme.cornerRadius w = math.max(cornerRadius/2, w) if h < cornerRadius/2 then