From 79faa2b83d2295a53645e1f5330edfc33be61305 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Fri, 11 Oct 2013 14:27:53 +0100 Subject: SVG: Add dumb group implementation. Really just a structure indicator as SVG 1.1 doesn't support blending etc. --- source/fitz/svg-device.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/fitz/svg-device.c b/source/fitz/svg-device.c index 6f3923ca..77eeb072 100644 --- a/source/fitz/svg-device.c +++ b/source/fitz/svg-device.c @@ -858,13 +858,20 @@ svg_dev_end_mask(fz_device *dev) static void svg_dev_begin_group(fz_device *dev, const fz_rect *bbox, int isolated, int knockout, int blendmode, float alpha) { + svg_device *sdev = (svg_device *)dev->user; + fz_output *out = sdev->out; + /* SVG 1.1 doesn't support adequate blendmodes/knockout etc, so just ignore it for now */ + fz_printf(out, "\n"); } static void svg_dev_end_group(fz_device *dev) { + svg_device *sdev = (svg_device *)dev->user; + fz_output *out = sdev->out; + fz_printf(out, "\n"); } static int -- cgit v1.2.3