Skip to content

Commit

Permalink
defend against potentially missing stroke default (#6190)
Browse files Browse the repository at this point in the history
  • Loading branch information
teunbrand authored Nov 27, 2024
1 parent 3d67907 commit 949d359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/geom-sf.R
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ GeomSf <- ggproto("GeomSf", Geom,
point_size[!(is_point | is_collection)] <-
data$linewidth[!(is_point | is_collection)]

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

linewidth <- data$linewidth * .pt
Expand Down

0 comments on commit 949d359

Please sign in to comment.