forked from 1b-agent/opencadstudio-upstream
feat(styles): seed current table/multileader style from the file
Bump acadrust to pick up the new $CTABLESTYLE / $CMLEADERSTYLE header variables, then on load seed the ribbon's active table style and the tab's active multileader style from the document header so the ✓ marks the style the file actually declares (DXF). Set Current writes the header field as the round-trip source of truth, and the style-manager staging snapshot now covers it. sync_ribbon_styles honours the active table style instead of always falling back to the first one. DWG still leaves these at "Standard" until acadrust parses them from the binary header. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
b3ba3a53d1
commit
e65a7a6d67
4 files changed
+36
-5
No files matched your search
+9
-4
@@ -119,10 +119,15 @@ impl OpenCADStudio {
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
let active_table = table_names
|
||||
.first()
|
||||
.cloned()
|
||||
.unwrap_or_else(|| "Standard".to_string());
|
||||
let active_table = self.ribbon.active_table_style.clone();
|
||||
let active_table = if table_names.contains(&active_table) {
|
||||
active_table
|
||||
} else {
|
||||
table_names
|
||||
.first()
|
||||
.cloned()
|
||||
.unwrap_or_else(|| "Standard".to_string())
|
||||
};
|
||||
|
||||
let active_mleader2 = active_mleader.clone();
|
||||
let active_table2 = active_table.clone();
|
||||
|
||||
Reference in new issue
Block a user