diff options
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(); |
