fix(tablestyle): ribbon pick writes header so inserts follow it

StyleKey::TableStyle only updated the ribbon mirror, so inserts kept using the header value and resync re-seeded from the mirror. The arm now writes current_table_style_name plus dirty when the style exists, and sync_ribbon_styles seeds from the document like Text/Dim. Tests: tablestyle_ribbon_pick_writes_header_and_dirties plus pick_flows_into_table_insert covering pick-to-dialog (both RED first). Full suite: 1996 passed / 0 failed / 25 ignored.
This commit is contained in:
Karim Jerbi committed 2026-10-09 19:50:17 +01:00
1 parent d3274543b7
commit 2187fe0d34
2 files changed
+66 -2

No files matched your search

+1 -1
View File
@@ -230,7 +230,7 @@ impl OpenCADStudio {
}
})
.collect();
let active_table = self.ribbon.active_table_style.clone();
let active_table = doc.header.current_table_style_name.clone();
let active_table = if table_names.contains(&active_table) {
active_table
} else {