Merge pr/662: Commands: reject unknown spread values instead of falling back to page 1 (#662)

# Conflicts:
#	crates/engine/src/cmd/file.rs
#	crates/engine/src/cmd/guides.rs
#	crates/engine/src/cmd/object.rs
This commit is contained in:
aiongg
2026-10-12 23:59:28 +00:00
14 changed files with 70 additions and 48 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ fn frame_rect(p: &Value) -> Result<Option<Rect>> {
fn thread(s: &mut Session, p: &Value) -> Result<Value> {
let (from, to, rect) = (id_param(p, "from"), id_param(p, "to"), frame_rect(p)?);
let sr = spread_param(p, "spread");
let sr = spread_param(p, "text.thread")?;
let autoflow = bool_or(p, "autoflow", false);
let layer = s.doc()?.active_layer;
s.edit(|d, sel| {