Fix for gr_get_color(series) == nothing
This commit is contained in:
parent
03f6c76b53
commit
ddd083b8c1
@ -605,7 +605,10 @@ function gr_set_gradient(c)
|
|||||||
grad
|
grad
|
||||||
end
|
end
|
||||||
|
|
||||||
gr_set_gradient(series::Series) = gr_set_gradient(gr_get_color(series))
|
function gr_set_gradient(series::Series)
|
||||||
|
color = gr_get_color(series)
|
||||||
|
color !== nothing && gr_set_gradient(color)
|
||||||
|
end
|
||||||
|
|
||||||
function gr_get_color(series::Series)
|
function gr_get_color(series::Series)
|
||||||
st = series[:seriestype]
|
st = series[:seriestype]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user