Skip to content

Commit 44c2497

Browse files
authored
Fix regression theme(legend.direction) (#5508)
* use correct direction * Add test
1 parent 091d92a commit 44c2497

File tree

4 files changed

+248
-1
lines changed

4 files changed

+248
-1
lines changed

R/guides-.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ Guides <- ggproto(
491491
horizontal = c("center", "top")
492492
)
493493

494-
grobs <- self$draw(theme, position, default_direction)
494+
grobs <- self$draw(theme, position, theme$legend.direction)
495495
if (length(grobs) < 1) {
496496
return(zeroGrob())
497497
}
Lines changed: 115 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)