Gaston: gaston_init_subplot should accept nothing

This commit is contained in:
t-bltg 2021-07-30 13:11:39 +02:00 committed by GitHub
parent 74b70fc039
commit 330d3231f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ function gaston_init_subplots(plt, sps)
return sz
end
function gaston_init_subplot(plt::Plot{GastonBackend}, sp::Subplot{GastonBackend})
function gaston_init_subplot(plt::Plot{GastonBackend}, sp::Union{Nothing,Subplot{GastonBackend}})
if sp === nothing
push!(plt.o.subplots, sp)
else