summaryrefslogtreecommitdiff
path: root/source/html
diff options
context:
space:
mode:
Diffstat (limited to 'source/html')
-rw-r--r--source/html/html-layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/html/html-layout.c b/source/html/html-layout.c
index 128afee5..ae3f9f21 100644
--- a/source/html/html-layout.c
+++ b/source/html/html-layout.c
@@ -396,12 +396,14 @@ static fz_image *load_html_image(fz_context *ctx, fz_archive *zip, const char *b
fz_try(ctx)
{
buf = fz_read_archive_entry(ctx, zip, path);
+#if FZ_ENABLE_SVG
if (strstr(path, ".svg"))
{
fz_write_buffer_byte(ctx, buf, 0);
img = fz_new_image_from_svg(ctx, buf);
}
else
+#endif
img = fz_new_image_from_buffer(ctx, buf);
}
fz_always(ctx)