Skip to content

Commit 53e4692

Browse files
authored
Better test for label.size (#2611)
Fixes #2607
1 parent bcc3ae5 commit 53e4692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/geom-label.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ GeomLabel <- ggproto("GeomLabel", Geom,
9090
lineheight = row$lineheight
9191
),
9292
rect.gp = gpar(
93-
col = if (label.size == 0) NA else row$colour,
93+
col = if (isTRUE(all.equal(label.size, 0))) NA else row$colour,
9494
fill = alpha(row$fill, row$alpha),
9595
lwd = label.size * .pt
9696
)

0 commit comments

Comments
 (0)