forked from 1b-agent/opencadstudio-upstream
XCLIP: roundtrip record keeps its cloning flag
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2078fc02f8
commit
32467adcef
1 file changed
+1
@@ -287,6 +287,7 @@ pub fn set_insert_clip(
|
|||||||
doc.objects.insert(fdict, ObjectType::Dictionary(d));
|
doc.objects.insert(fdict, ObjectType::Dictionary(d));
|
||||||
let mut x = XRecord::new();
|
let mut x = XRecord::new();
|
||||||
(x.handle, x.owner) = (record, fdict);
|
(x.handle, x.owner) = (record, fdict);
|
||||||
|
x.cloning_flags = acadrust::objects::DictionaryCloningFlags::KeepExisting;
|
||||||
let point = |p: &[f64; 2]| XRecordEntry::new(10, XRecordValue::Point3D(p[0], p[1], 0.0));
|
let point = |p: &[f64; 2]| XRecordEntry::new(10, XRecordValue::Point3D(p[0], p[1], 0.0));
|
||||||
x.entries.push(XRecordEntry::string(102, INVERTED));
|
x.entries.push(XRecordEntry::string(102, INVERTED));
|
||||||
x.entries.extend(boundary.iter().map(point));
|
x.entries.extend(boundary.iter().map(point));
|
||||||
|
|||||||
Reference in new issue
Block a user