switch to active header layout in finish_region

This commit is contained in:
PgBiel 2025-04-09 14:01:47 -03:00 committed by GitHub
parent cefa7fc72c
commit 4a83d05625
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,6 @@ use typst_library::visualize::Geometry;
use typst_syntax::Span; use typst_syntax::Span;
use typst_utils::{MaybeReverseIter, Numeric}; use typst_utils::{MaybeReverseIter, Numeric};
use super::repeated::HeadersToLayout;
use super::{ use super::{
generate_line_segments, hline_stroke_at_column, layout_cell, vline_stroke_at_row, generate_line_segments, hline_stroke_at_column, layout_cell, vline_stroke_at_row,
LineSegment, Rowspan, UnbreakableRowGroup, LineSegment, Rowspan, UnbreakableRowGroup,
@ -1705,7 +1704,7 @@ impl<'a> GridLayouter<'a> {
if !self.repeating_headers.is_empty() || !self.pending_headers.is_empty() { if !self.repeating_headers.is_empty() || !self.pending_headers.is_empty() {
// Add headers to the new region. // Add headers to the new region.
self.layout_headers(HeadersToLayout::RepeatingAndPending, engine)?; self.layout_active_headers(engine)?;
} }
} }