From a2f559317495b6df20875e38c1c37f9aa02c4115 Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Fri, 13 Jun 2025 03:34:53 -0300 Subject: [PATCH] improve check to pull next repeating footer --- crates/typst-layout/src/grid/repeated.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/typst-layout/src/grid/repeated.rs b/crates/typst-layout/src/grid/repeated.rs index a93acd98d..1a8733102 100644 --- a/crates/typst-layout/src/grid/repeated.rs +++ b/crates/typst-layout/src/grid/repeated.rs @@ -518,10 +518,9 @@ impl<'a> GridLayouter<'a> { || self .upcoming_sorted_footers .first() - .is_none_or(|f| f.level >= footer.level) + .is_some_and(|f| f.level >= footer.level) { self.prepare_next_repeating_footers(false, engine)?; - return Ok(()); } Ok(())