Skip to content

Commit 82bf7d9

Browse files
committed
fix early exit
1 parent 7a746b2 commit 82bf7d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/geom-hex.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
GeomHex <- ggproto("GeomHex", Geom,
66
draw_group = function(self, data, panel_params, coord, lineend = "butt",
77
linejoin = "mitre", linemitre = 10) {
8-
data <- fix_linewidth(data, snake_class(self))
98
if (empty(data)) {
109
return(zeroGrob())
1110
}
11+
data <- fix_linewidth(data, snake_class(self))
1212

1313
# Get hex sizes
1414
if (!is.null(data$width)) {

0 commit comments

Comments
 (0)