mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-28 04:06:54 -06:00
IDML: deleted text inside nested paragraphs stays deleted
A paragraph range inside a tracked change takes the change into its character attributes, so the mark holds for its character ranges however their format is built.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user