From 157e0fa1427d604efb0754da9237f0abcf35c479 Mon Sep 17 00:00:00 2001 From: Tobias Schmitz Date: Fri, 4 Jul 2025 15:56:39 +0200 Subject: [PATCH] fix: generate cell id with correct indices --- crates/typst-pdf/src/tags/table.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/typst-pdf/src/tags/table.rs b/crates/typst-pdf/src/tags/table.rs index 57effd02e..eb13a1391 100644 --- a/crates/typst-pdf/src/tags/table.rs +++ b/crates/typst-pdf/src/tags/table.rs @@ -245,7 +245,7 @@ impl TableCtx { if let TableCellKind::Header(level, scope) = cell.unwrap_kind() { if refers_to_dir(&scope) { - let tag_id = table_cell_id(table_id, x as u32, y as u32); + let tag_id = table_cell_id(table_id, cell.x, cell.y); *current_header = Some((level, tag_id)); } }