Merge #629: Fix pasted type losing its layout bounds cache

# Conflicts:
#	crates/engine/src/cmd/edit.rs
This commit is contained in:
bflatastic
2026-10-09 06:14:31 +07:00
3 changed files with 37 additions and 0 deletions
+3
View File
@@ -381,6 +381,9 @@ fn paste_clip(s: &mut Session, p: &Value, mode: PasteMode, clip: &Clipboard, cho
}
}
sel.set(new_ids.iter().copied());
// Pasted type arrives without the layout bounds cache: fill it so boxes and alignment are
// right away (opening the file later would, but paste must not depend on a reopen).
super::typecmd::refresh_bounds_of(d, &new_ids);
Ok((new_ids, imported, artboard))
})?;
// The Artboard tool takes the pasted artboard.