Skip to content

Commit 949d359

Browse files
authored
defend against potentially missing stroke default (#6190)
1 parent 3d67907 commit 949d359

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/geom-sf.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ GeomSf <- ggproto("GeomSf", Geom,
231231
point_size[!(is_point | is_collection)] <-
232232
data$linewidth[!(is_point | is_collection)]
233233

234-
stroke <- data$stroke * .stroke / 2
234+
stroke <- (data$stroke %||% rep(0.5, nrow(data))) * .stroke / 2
235235
font_size <- point_size * .pt + stroke
236236

237237
linewidth <- data$linewidth * .pt

0 commit comments

Comments
 (0)