From 927c92bdfbddc9c3fb3d3aae4f7a732db5464f8f Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 3 Apr 2014 20:27:45 +0200 Subject: [PATCH] gears.color: Handle nil arguments correctly again Signed-off-by: Uli Schlachter --- lib/gears/color.lua.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/gears/color.lua.in b/lib/gears/color.lua.in index 115babb42..47e325269 100644 --- a/lib/gears/color.lua.in +++ b/lib/gears/color.lua.in @@ -187,7 +187,8 @@ function color.create_pattern(col) if cairo.Pattern:is_type_of(col) then return col end - local result = col and pattern_cache[col] + local col = col or "#000000" + local result = pattern_cache[col] if result then return result end