Skip to content

Commit

Permalink
fix null alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunuuuu committed Dec 24, 2024
1 parent e039bc2 commit d27d4fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ggplot-theme.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ element_grob.element_polygon <- function(element, x, y,
element_gp <- gpar(
lwd = ggfun("len0_null")(element$linewidth * .pt),
col = element$colour,
fill = fill_alpha(element$fill, element$alpha),
fill = fill_alpha(element$fill, element$alpha %||% NA),
lty = element$linetype,
lineend = element$lineend,
linejoin = element$linejoin,
Expand Down

0 comments on commit d27d4fb

Please sign in to comment.