r-lib / gtable

The layout packages that powers ggplot2
https://gtable.r-lib.org
Other
87 stars 18 forks source link

grid.draw() with empty gtable results in error #30

Closed wch closed 12 years ago

wch commented 12 years ago
gt <- gtable(name = "test",
  widths=unit(c(1,2,3),"cm"), heights=unit(c(4,5),"cm") )

grid.draw(gt)
# Error in mapply(child_vp, grob = x$grobs, vp_name = vpname(x$layout),  : 
#  Zero-length inputs cannot be mixed with those of non-zero length
wch commented 12 years ago

Fixed in 8d7ebf5db235b69a5dfcd55feec5397b5c06ba6d.