mirror of
https://github.com/typst/typst
synced 2025-08-10 13:17:55 +08:00
Fix ImageElem::decode
This commit is contained in:
parent
19e719ffe1
commit
e00508f22d
@ -198,15 +198,12 @@ impl ImageElem {
|
||||
if let Some(fit) = fit {
|
||||
elem.push_fit(fit);
|
||||
}
|
||||
if let Some(fit) = fit {
|
||||
elem.push_fit(fit);
|
||||
if let Some(scaling) = scaling {
|
||||
elem.push_scaling(scaling);
|
||||
}
|
||||
if let Some(flatten_text) = flatten_text {
|
||||
elem.push_flatten_text(flatten_text);
|
||||
}
|
||||
if let Some(scaling) = scaling {
|
||||
elem.push_scaling(scaling);
|
||||
}
|
||||
Ok(elem.pack().spanned(span))
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user