diff --git a/crates/typst-layout/src/grid/repeated.rs b/crates/typst-layout/src/grid/repeated.rs index c1fbe7e00..2f9a5a947 100644 --- a/crates/typst-layout/src/grid/repeated.rs +++ b/crates/typst-layout/src/grid/repeated.rs @@ -665,7 +665,7 @@ impl<'a> GridLayouter<'a> { // TODO(subfooters): also consider omitted gutter before the footer // when there is a header right before it taking it. - for y in footer.range.start..self.grid.rows.len() { + for y in footer.range.clone() { self.layout_row_with_state( y, engine,