Skip to content

Commit 3755e2d

Browse files
committed
keep theme class
1 parent 896666d commit 3755e2d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/theme.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,9 @@ theme <- function(...,
497497
})
498498
}
499499

500-
class_theme(elements, complete = complete, validate = validate)
500+
t <- class_theme(elements, complete = complete, validate = validate)
501+
class(t) <- union("theme", class(t))
502+
t
501503
}
502504

503505
fix_theme_deprecations <- function(elements) {

0 commit comments

Comments
 (0)