gears.color: Handle nil arguments correctly again
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
1e442c97c8
commit
927c92bdfb
|
@ -187,7 +187,8 @@ function color.create_pattern(col)
|
||||||
if cairo.Pattern:is_type_of(col) then
|
if cairo.Pattern:is_type_of(col) then
|
||||||
return col
|
return col
|
||||||
end
|
end
|
||||||
local result = col and pattern_cache[col]
|
local col = col or "#000000"
|
||||||
|
local result = pattern_cache[col]
|
||||||
if result then
|
if result then
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue