From 6e0664b78a7a9208f6b09df7ec7d149da00b90d4 Mon Sep 17 00:00:00 2001 From: Teun van den Brand <49372158+teunbrand@users.noreply.github.com> Date: Tue, 28 Jan 2025 14:21:29 +0100 Subject: [PATCH] prepopulate theme (#6304) --- R/guides-.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/guides-.R b/R/guides-.R index 44ed7fb383..83ced80cd7 100644 --- a/R/guides-.R +++ b/R/guides-.R @@ -274,7 +274,7 @@ Guides <- ggproto( # # The resulting guide is then drawn in ggplot_gtable - build = function(self, scales, layers, labels, layer_data, theme) { + build = function(self, scales, layers, labels, layer_data, theme = theme()) { # Empty guides list custom <- self$get_custom()