Skip to content

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

Integration: renaming a character style updates the drop cap style once

aiongg25aa75a6e530
diff --git a/crates/engine/src/cmd/style.rs b/crates/engine/src/cmd/style.rs
index 7e04bb676..8d8416790 100644
--- a/crates/engine/src/cmd/style.rs
+++ b/crates/engine/src/cmd/style.rs
@@ -726,9 +726,6 @@ fn rename_char_refs(p: &mut ParaAttrs, from: &str, to: &str) {
*n = to.to_string();
}
}
- if p.drop_cap_style.as_deref() == Some(from) {
- p.drop_cap_style = Some(to.to_string());
- }
}
fn group_styles(s: &mut Session, p: &Value) -> Result<Value> {