Fix type check

This commit is contained in:
t-bltg 2021-08-28 13:14:42 +02:00 committed by GitHub
parent 2049553f54
commit 7376d60a63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ function addUnicodeSeries!(sp::Subplot{UnicodePlotsBackend}, o, series, addlegen
lc = attrs[:linecolor] lc = attrs[:linecolor]
if typeof(lc) <: UnicodePlots.UserColorType if typeof(lc) <: UnicodePlots.UserColorType
color = lc color = lc
elseif lc <: RGBA elseif typeof(lc) <: RGBA
lc = convert(ARGB32, lc) lc = convert(ARGB32, lc)
color = map(Int, (red(lc).i, green(lc).i, blue(lc).i)) color = map(Int, (red(lc).i, green(lc).i, blue(lc).i))
else else