From 330d3231f6bf83343ac584f0fa378b53f013dc40 Mon Sep 17 00:00:00 2001 From: t-bltg <13423344+t-bltg@users.noreply.github.com> Date: Fri, 30 Jul 2021 13:11:39 +0200 Subject: [PATCH] Gaston: gaston_init_subplot should accept nothing --- src/backends/gaston.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backends/gaston.jl b/src/backends/gaston.jl index 59b24bf0..0257afd2 100644 --- a/src/backends/gaston.jl +++ b/src/backends/gaston.jl @@ -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