Skip to content

Commit f0965ac

Browse files
committed
default linewidth to 0
1 parent 859f618 commit f0965ac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

R/legend-draw.R

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,8 @@ draw_key_rect <- function(data, params, size) {
6767
#' @export
6868
#' @rdname draw_key
6969
draw_key_polygon <- function(data, params, size) {
70-
if (is.null(data$linewidth)) {
71-
data$linewidth <- 0.5
72-
}
7370

74-
lwd <- data$linewidth
71+
lwd <- data$linewidth %||% 0
7572

7673
grob <- rectGrob(
7774
width = unit(1, "npc") - unit(lwd, "mm"),

0 commit comments

Comments
 (0)