summaryrefslogtreecommitdiff
path: root/src/export/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'src/export/pdf')
-rw-r--r--src/export/pdf/image.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/export/pdf/image.rs b/src/export/pdf/image.rs
index 906737de..e6eaa9c9 100644
--- a/src/export/pdf/image.rs
+++ b/src/export/pdf/image.rs
@@ -17,7 +17,7 @@ pub fn write_images(ctx: &mut PdfContext) {
// Add the primary image.
// TODO: Error if image could not be encoded.
- match image.decode().unwrap().as_ref() {
+ match image.decoded() {
DecodedImage::Raster(dynamic, format) => {
// TODO: Error if image could not be encoded.
let (data, filter, has_color) = encode_image(*format, dynamic).unwrap();