Skip to content

Commit 5bb34e5

Browse files
committed
ensure add_sf() calls add_trace() with unique args
1 parent f69904a commit 5bb34e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/add.R

+2-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ add_sf <- function(p, ..., x = ~x, y = ~y, data = NULL, inherit = TRUE) {
337337
data = if ("group" %in% names(d[[i]])) group_by_(d[[i]], "group", add = TRUE) else d[[i]],
338338
inherit = inherit
339339
)
340-
p <- do.call(add_trace_classed, c(args, attrs))
340+
args <- modify_list(args, attrs)
341+
p <- do.call(add_trace_classed, args)
341342
}
342343

343344
p

0 commit comments

Comments
 (0)