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
+1 -1
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