From 406e71f1823bec2e57fa4889f1eb7f13b476533f Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sat, 28 Nov 2026 15:45:43 +0700 Subject: [PATCH] Copied properties keep a corner style: it isn't a link to a shared style --- crates/engine/src/cmd/edit/clipboard.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/engine/src/cmd/edit/clipboard.rs b/crates/engine/src/cmd/edit/clipboard.rs index da31dded7..ee96cb8df 100644 --- a/crates/engine/src/cmd/edit/clipboard.rs +++ b/crates/engine/src/cmd/edit/clipboard.rs @@ -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; } }