DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
rustfmt
moppeeer11ef2cc8404c
diff --git a/crates/tools/src/select.rs b/crates/tools/src/select.rsindex cd47a0338..ff5d0320e 100644--- a/crates/tools/src/select.rs+++ b/crates/tools/src/select.rs@@ -776,8 +776,8 @@ impl SelectionTool {} else {out.push(Action::Exec("selection.toggle".into(), json!({"id": id.0})));}- } else if !cx.selection.contains(id) || (self.direct && !cx.selection.content && cx.doc.item(id).is_some_and(holds_content)) {- // Direct Selection on a selected frame selects its content (a graphic or pasted-in items).+ } else if !cx.selection.contains(id) || (self.direct && !cx.selection.content && cx.doc.item(id).is_some_and(holds_content)) {+ // Direct Selection on a selected frame selects its content (a graphic or pasted-in items).out.push(Action::Exec("selection.set".into(), json!({"ids": [id.0], "content": self.direct})));} else if !self.direct && cx.selection.items.len() > 1 {// InDesign: a click on one of several selected objects makes it the