gears.color: Handle nil arguments correctly again
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
7967d05915
commit
ed6d5e0246
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue