DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
test(idml): the liquid-rule round trip detaches page 1's parent along with its local margins
aiongge22205039c16
diff --git a/crates/idml/src/tests.rs b/crates/idml/src/tests.rsindex 042a0c8d9..112d258de 100644--- a/crates/idml/src/tests.rs+++ b/crates/idml/src/tests.rs@@ -2549,6 +2549,8 @@ mod liquid_page_rules {let mut source = baseline.clone();let pages = &mut Arc::make_mut(&mut source.spreads[0]).pages;pages[0].parent = None;+ // Without a parent there are no margins to follow, so they aren't local either.+ pages[0].local_margins = false;pages[0].liquid = R::ControlledByParent;pages[1].liquid = rule;Arc::make_mut(&mut source.parents[0]).pages[1].liquid = R::ReCenter;