Skip to content

Commit 8c89138

Browse files
authored
Stricter test for theme$panel.ontop (#2606)
Fixes revdep failure in ggthemes
1 parent db65d02 commit 8c89138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/layout.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Layout <- ggproto("Layout", NULL,
8080

8181
coord_fg <- self$coord$render_fg(self$panel_params[[i]], theme)
8282
coord_bg <- self$coord$render_bg(self$panel_params[[i]], theme)
83-
if (theme$panel.ontop) {
83+
if (isTRUE(theme$panel.ontop)) {
8484
panel <- c(panel, list(coord_bg), list(coord_fg))
8585
} else {
8686
panel <- c(list(coord_bg), panel, list(coord_fg))

0 commit comments

Comments
 (0)