diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-09-27 12:10:24 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-09-27 12:20:29 +0200 |
| commit | ffcd951bc8a698af99d43f5245aea47a7c09adaf (patch) | |
| tree | 00cc0eaaa8deb0eb2a958e9c41060a7a842fcbf3 /crates/typst-library | |
| parent | d7928a8ea347df89f501e5b3ecbb52402cae8edb (diff) | |
Refactor image handling
Diffstat (limited to 'crates/typst-library')
| -rw-r--r-- | crates/typst-library/src/visualize/image.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/typst-library/src/visualize/image.rs b/crates/typst-library/src/visualize/image.rs index 93c8a542..70001292 100644 --- a/crates/typst-library/src/visualize/image.rs +++ b/crates/typst-library/src/visualize/image.rs @@ -159,9 +159,9 @@ impl Layout for ImageElem { let image = Image::with_fonts( data.into(), format, - vt.world, - families(styles).map(|s| s.as_str().into()).collect(), self.alt(styles), + vt.world, + &families(styles).map(|s| s.as_str().into()).collect::<Vec<_>>(), ) .at(self.span())?; |
