fix: generate cell id with correct indices

This commit is contained in:
Tobias Schmitz 2025-07-04 15:56:39 +02:00
parent 4dceb7f5ef
commit 157e0fa142
No known key found for this signature in database

View File

@ -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));
} }
} }