Skip to content

Commit a502f6c

Browse files
committed
fallback for StatAlign$finish_layer
1 parent 0ec4e7e commit a502f6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/stat-align.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ StatAlign <- ggproto(
7777

7878
finish_layer = function(data, params) {
7979
# Silently remove out-of-bounds padding vertices
80-
var <- flipped_names(params$flipped_aes)$x
80+
var <- flipped_names(params$flipped_aes %||% FALSE)$x
8181
remove <- is.na(data[[var]]) & (data$align_padding %||% FALSE)
8282
vec_slice(data, !remove)
8383
}

0 commit comments

Comments
 (0)