Skip to content

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

IDML export: paragraph overprint attributes through main's attribute macros

moppeeer0268dd40e72a
diff --git a/crates/idml/src/export/text_attrs.rs b/crates/idml/src/export/text_attrs.rs
index 6fddcfeb2..7071f68ba 100644
--- a/crates/idml/src/export/text_attrs.rs
+++ b/crates/idml/src/export/text_attrs.rs
@@ -494,7 +494,7 @@ impl<'a> Ex<'a> {
props.push(p("ParagraphShadingColor", "object", self.sw(c)));
}
n!(a, el, shading_tint, "ParagraphShadingTint", pct);
- b!(shading_overprint, "ParagraphShadingOverprint");
+ b!(a, el, shading_overprint, "ParagraphShadingOverprint");
const SIDES: [&str; 4] = ["Top", "Left", "Bottom", "Right"];
if let Some(o) = a.shading_offsets {
for (i, side) in SIDES.iter().enumerate() {
@@ -506,7 +506,7 @@ impl<'a> Ex<'a> {
props.push(p("ParagraphBorderColor", "object", self.sw(c)));
}
n!(a, el, border_tint, "ParagraphBorderTint", pct);
- b!(border_overprint, "ParagraphBorderOverprint");
+ b!(a, el, border_overprint, "ParagraphBorderOverprint");
if let Some(w) = a.border_weights {
for (i, side) in SIDES.iter().enumerate() {
el.set(&format!("ParagraphBorder{side}LineWeight"), num(w[i]));