From 7ee5dfaa8943ce3073928868e1d83b102175f578 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Fri, 13 Jun 2025 01:31:35 -0300 Subject: [PATCH] fix footer layout range --- crates/typst-layout/src/grid/repeated.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,