forked from 1b-agent/opencadstudio-upstream
fix(linetype): an opened drawing keeps exactly its own linetypes (#1826)
Opening a drawing added all 50 catalog linetypes to it, so PURGE found and removed them again after every save and reopen. Opening now only repairs the catalog linetypes a drawing already has. The linetype pickers (layers, properties, ribbon, attribute editor, layer states) offer the missing catalog ones after the drawing's own, and the one picked, or named in LINETYPE SET, is loaded on first use. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c499ce97d4
commit
9a567d4f44
7 files changed
+85
-5
No files matched your search
@@ -205,6 +205,11 @@ impl OpenCADStudio {
|
||||
} else if name.eq_ignore_ascii_case("BYBLOCK") {
|
||||
Some(("ByBlock".to_string(), codec::types::Handle::NULL))
|
||||
} else {
|
||||
// A catalog linetype loads on first use.
|
||||
crate::io::linetypes::ensure_catalog_linetype(
|
||||
&mut self.tabs[i].scene.document,
|
||||
name,
|
||||
);
|
||||
self.tabs[i]
|
||||
.scene
|
||||
.document
|
||||
|
||||
Reference in new issue
Block a user