Skip to content

Commit bc9e69f

Browse files
authored
Remove lingering panel ref (#1794)
1 parent ba5c090 commit bc9e69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/facet-wrap.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ FacetWrap <- ggproto("FacetWrap", Facet,
215215
# ask the coordinate system if it wants to specify one
216216
aspect_ratio <- theme$aspect.ratio
217217
if (is.null(aspect_ratio) && !params$free$x && !params$free$y) {
218-
aspect_ratio <- coord$aspect(panel$ranges[[1]])
218+
aspect_ratio <- coord$aspect(ranges[[1]])
219219
}
220220

221221
if (is.null(aspect_ratio)) {

0 commit comments

Comments
 (0)