Skip to content

Commit 6e0664b

Browse files
authored
prepopulate theme (#6304)
1 parent df0e150 commit 6e0664b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: R/guides-.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Guides <- ggproto(
274274
#
275275
# The resulting guide is then drawn in ggplot_gtable
276276

277-
build = function(self, scales, layers, labels, layer_data, theme) {
277+
build = function(self, scales, layers, labels, layer_data, theme = theme()) {
278278

279279
# Empty guides list
280280
custom <- self$get_custom()

0 commit comments

Comments
 (0)