Skip to content

Commit ec33079

Browse files
committed
pull linetype from GeomPolygon/GeomLine
1 parent 6a447ba commit ec33079

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/geom-sf.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ GeomSf <- ggproto("GeomSf", Geom,
126126
fill = NULL,
127127
size = NULL,
128128
linewidth = NULL,
129-
linetype = from_theme(linetype),
129+
linetype = NULL,
130130
alpha = NA,
131131
stroke = 0.5
132132
),
@@ -161,6 +161,7 @@ GeomSf <- ggproto("GeomSf", Geom,
161161
vec_slice(data, index$point),
162162
params, modifiers, theme = theme
163163
)
164+
points$linetype <- 1L # Avoids NA linetype, which is invalid input
164165
}
165166
if (length(index$line) > 0) {
166167
lines <- GeomLine$use_defaults(

0 commit comments

Comments
 (0)