diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-05-11 14:19:19 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-05-11 14:21:43 +0200 |
| commit | 27771bc329ab23cc551637fb3feac7b5689e64c7 (patch) | |
| tree | 383bfeadf9981bca48a9cc46adc2f1b8f46f871e /src/export/pdf | |
| parent | 8ac7be95e660da3e67ac499410450793eaa18429 (diff) | |
Let `Document` be `Sync` again
Fixes #930.
Diffstat (limited to 'src/export/pdf')
| -rw-r--r-- | src/export/pdf/image.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/export/pdf/image.rs b/src/export/pdf/image.rs index dcd5a45a..7d5656ca 100644 --- a/src/export/pdf/image.rs +++ b/src/export/pdf/image.rs @@ -19,7 +19,7 @@ pub fn write_images(ctx: &mut PdfContext) { // Add the primary image. // TODO: Error if image could not be encoded. - match image.decoded() { + match image.decoded().as_ref() { DecodedImage::Raster(dynamic, icc, format) => { // TODO: Error if image could not be encoded. let (data, filter, has_color) = encode_image(*format, dynamic).unwrap(); |
