summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPgBiel <9021226+PgBiel@users.noreply.github.com>2025-06-13 03:34:53 -0300
committerPgBiel <9021226+PgBiel@users.noreply.github.com>2025-06-28 22:39:35 -0300
commita2f559317495b6df20875e38c1c37f9aa02c4115 (patch)
treea351c3cc37fa1ccc695f31ae6d7d087dc72730d8
parentc346fb85892c7de53fee87cc1028128aaee10380 (diff)
improve check to pull next repeating footer
-rw-r--r--crates/typst-layout/src/grid/repeated.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/typst-layout/src/grid/repeated.rs b/crates/typst-layout/src/grid/repeated.rs
index a93acd98..1a873310 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(())