mirror of
https://github.com/typst/typst
synced 2025-07-27 14:27:56 +08:00
fix: generate cell id with correct indices
This commit is contained in:
parent
4dceb7f5ef
commit
157e0fa142
@ -245,7 +245,7 @@ impl TableCtx {
|
|||||||
|
|
||||||
if let TableCellKind::Header(level, scope) = cell.unwrap_kind() {
|
if let TableCellKind::Header(level, scope) = cell.unwrap_kind() {
|
||||||
if refers_to_dir(&scope) {
|
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));
|
*current_header = Some((level, tag_id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user