mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-01 22:07:28 -06:00
Update crates/text/src/psd_path.rs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
parent
020784da62
commit
6d92b12691
@@ -286,7 +286,8 @@ pub(crate) fn update_frame(entry: &mut E, shape: &TextShape) {
|
||||
frame.set("2", data);
|
||||
*entry = E::Dict(vec![("0".into(), frame)]);
|
||||
}
|
||||
_ if kind != PATH_FRAME => {}
|
||||
// Leave unreadable path frames unchanged. They were not imported as detached paths.
|
||||
_ if kind != PATH_FRAME || frame.is_none_or(|f| read(f).is_err()) => {}
|
||||
TextShape::Box { x, y, width, height } => *entry = box_frame(f64::from(*x), f64::from(*y), f64::from(*width), f64::from(*height)),
|
||||
TextShape::Point => *entry = point_frame(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user