Skip to content

Commit

Permalink
Reapply #4574
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasp85 committed Apr 27, 2022
1 parent 30065fc commit 5fce547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/guide-legend.r
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ guide_gengrob.legend <- function(guide, theme) {
draw_key <- function(i) {
bg <- element_render(theme, "legend.key")
keys <- lapply(guide$geoms, function(g) {
g$draw_key(g$data[i, ], g$params, key_size)
g$draw_key(g$data[i, , drop = FALSE], g$params, key_size)
})
c(list(bg), keys)
}
Expand Down

0 comments on commit 5fce547

Please sign in to comment.