From 7376d60a633b2a7c696d0181f12fb911a2439ef8 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Sat, 28 Aug 2021 13:14:42 +0200 Subject: [PATCH] Fix type check --- src/backends/unicodeplots.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/unicodeplots.jl b/src/backends/unicodeplots.jl index 234bec0c..4149cce2 100644 --- a/src/backends/unicodeplots.jl +++ b/src/backends/unicodeplots.jl @@ -111,7 +111,7 @@ function addUnicodeSeries!(sp::Subplot{UnicodePlotsBackend}, o, series, addlegen lc = attrs[:linecolor] if typeof(lc) <: UnicodePlots.UserColorType color = lc - elseif lc <: RGBA + elseif typeof(lc) <: RGBA lc = convert(ARGB32, lc) color = map(Int, (red(lc).i, green(lc).i, blue(lc).i)) else