From 4a83d05625c2a53ba30d442818369a81f7550d6a Mon Sep 17 00:00:00 2001 From: PgBiel <9021226+PgBiel@users.noreply.github.com> Date: Wed, 9 Apr 2025 14:01:47 -0300 Subject: [PATCH] switch to active header layout in finish_region --- crates/typst-layout/src/grid/layouter.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/typst-layout/src/grid/layouter.rs b/crates/typst-layout/src/grid/layouter.rs index 176080b6c..80e1885e1 100644 --- a/crates/typst-layout/src/grid/layouter.rs +++ b/crates/typst-layout/src/grid/layouter.rs @@ -15,7 +15,6 @@ use typst_library::visualize::Geometry; use typst_syntax::Span; use typst_utils::{MaybeReverseIter, Numeric}; -use super::repeated::HeadersToLayout; use super::{ generate_line_segments, hline_stroke_at_column, layout_cell, vline_stroke_at_row, LineSegment, Rowspan, UnbreakableRowGroup, @@ -1705,7 +1704,7 @@ impl<'a> GridLayouter<'a> { if !self.repeating_headers.is_empty() || !self.pending_headers.is_empty() { // Add headers to the new region. - self.layout_headers(HeadersToLayout::RepeatingAndPending, engine)?; + self.layout_active_headers(engine)?; } }