Skip to content

Commit c404748

Browse files
committed
don't prepopulate legend sizes
1 parent 1bfb3c9 commit c404748

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

R/guides-.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,6 @@ Guides <- ggproto(
491491
character(1), USE.NAMES = FALSE
492492
)
493493

494-
# Populate key sizes
495-
theme$legend.key.width <- calc_element("legend.key.width", theme)
496-
theme$legend.key.height <- calc_element("legend.key.height", theme)
497-
498494
grobs <- self$draw(theme, positions, theme$legend.direction)
499495
keep <- !vapply(grobs, is.zero, logical(1), USE.NAMES = FALSE)
500496
grobs <- grobs[keep]

0 commit comments

Comments
 (0)