Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

IDML: deleted text inside nested paragraphs stays deleted

aionggf8d9f3f3a3ee
diff --git a/crates/idml/src/import.rs b/crates/idml/src/import.rs
index 91f486995..bfbff2cb1 100644
--- a/crates/idml/src/import.rs
+++ b/crates/idml/src/import.rs
@@ -1732,7 +1732,9 @@ impl<'r> Importer<'r> {
"ParagraphStyleRange" => {
let style = c.get("AppliedParagraphStyle").map(|r| self.para_style_ref(r)).unwrap_or_else(|| pf.style.clone());
let para = self.para_attrs(c);
- let chars = self.char_attrs(c);
+ let mut chars = self.char_attrs(c);
+ // A paragraph range inside a tracked change is part of that change.
+ chars.change = chars.change.or(cf.over.change);
let npf = ParaFormat { style, para, chars: CharAttrs::default(), table: None };
if b.fresh
&& let Some(last) = b.paras.last_mut()