From f8ee4da18067a84ed6e04f44d22028da4de6469d Mon Sep 17 00:00:00 2001 From: yha Date: Sun, 8 Sep 2019 15:14:35 +0300 Subject: [PATCH] Base.show method for RootLayout, to allow dump(::Plot) --- src/layouts.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layouts.jl b/src/layouts.jl index 7dbc088d..f05fcde5 100644 --- a/src/layouts.jl +++ b/src/layouts.jl @@ -217,6 +217,7 @@ bottompad(layout::AbstractLayout) = 0mm # this is the parent of the top-level layout struct RootLayout <: AbstractLayout end +Base.show(io::IO, layout::RootLayout) = Base.show_default(io, layout) Base.parent(::RootLayout) = nothing parent_bbox(::RootLayout) = defaultbox bbox(::RootLayout) = defaultbox