Copied properties keep a corner style: it isn't a link to a shared style

This commit is contained in:
bflatastic committed 2026-11-28 15:45:43 +07:00
1 parent 86092cddda
commit 406e71f182
1 file changed
+2 -1
+2 -1
View File
@@ -580,7 +580,8 @@ pub(crate) fn apply_copied_props(cmd: &str, doc: &mut Document, id: NodeId, prop
// values it gave are pasted without a link, so the layer's own link goes too.
let here = |v: &Value| v.as_str().is_none_or(|sid| doc.style(sid).is_some());
for (k, v) in m.iter_mut() {
if k.ends_with("Style") && !k.starts_with("font") && !here(v) {
// `cornerStyle` is a value (round, chamfer, concave), not a link to a shared style.
if k.ends_with("Style") && !k.starts_with("font") && k != "cornerStyle" && !here(v) {
*v = Value::Null;
}
}