summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Schmitz <tobiasschmitz2001@gmail.com>2025-07-04 15:56:39 +0200
committerTobias Schmitz <tobiasschmitz2001@gmail.com>2025-07-04 15:56:39 +0200
commit157e0fa1427d604efb0754da9237f0abcf35c479 (patch)
tree848d206e0d5d07f21d752b21b9ec719af2c51705
parent4dceb7f5efb0319359b25d887fd47ebe680c1d4b (diff)
fix: generate cell id with correct indices
-rw-r--r--crates/typst-pdf/src/tags/table.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/typst-pdf/src/tags/table.rs b/crates/typst-pdf/src/tags/table.rs
index 57effd02..eb13a139 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));
}
}