From 4af205af9c210d144dd9d5f9ff3fb277f61f5e19 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 29 Jun 2018 17:49:50 +0200 Subject: Silence warning. --- source/fitz/svg-device.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'source/fitz') diff --git a/source/fitz/svg-device.c b/source/fitz/svg-device.c index 17a35f7c..6e91aa11 100644 --- a/source/fitz/svg-device.c +++ b/source/fitz/svg-device.c @@ -855,14 +855,11 @@ svg_send_image(fz_context *ctx, svg_device *sdev, fz_image *img, const fz_color_ id = sdev->id++; out = start_def(ctx, sdev); fz_write_printf(ctx, out, "\n", id, img->w, img->h); - } - fz_write_printf(ctx, out, "w, img->h); - fz_write_image_as_data_uri(ctx, out, img); - fz_write_printf(ctx, out, "\"/>\n"); + fz_write_printf(ctx, out, "w, img->h); + fz_write_image_as_data_uri(ctx, out, img); + fz_write_printf(ctx, out, "\"/>\n"); - if (sdev->reuse_images) - { fz_write_printf(ctx, out, "\n"); out = end_def(ctx, sdev); @@ -873,6 +870,12 @@ svg_send_image(fz_context *ctx, svg_device *sdev, fz_image *img, const fz_color_ fz_write_printf(ctx, out, "\n", id, img->w, img->h); } + else + { + fz_write_printf(ctx, out, "w, img->h); + fz_write_image_as_data_uri(ctx, out, img); + fz_write_printf(ctx, out, "\"/>\n"); + } } static void -- cgit v1.2.3