summaryrefslogtreecommitdiff
path: root/source/fitz/output-svg.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2017-03-23 21:36:57 -0400
committerRobin Watts <Robin.Watts@artifex.com>2017-03-23 21:39:07 -0400
commitea75724276f1efabd5d78595af0d3d35f7cde659 (patch)
tree5d4ebd5169ba4154109463f7e9bfcf7462737fd6 /source/fitz/output-svg.c
parent6979982ba2900f451c801d35bb7e52413a89d26e (diff)
downloadmupdf-ea75724276f1efabd5d78595af0d3d35f7cde659.tar.xz
Introduce fz_new_derived_...
Instead of having fz_new_XXXX(ctx, type, ...) macros that call fz_new_XXXX_of_size etc, use fz_new_derived_... Clearer naming, and doesn't clash with fz_new_document_writer.
Diffstat (limited to 'source/fitz/output-svg.c')
-rw-r--r--source/fitz/output-svg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/output-svg.c b/source/fitz/output-svg.c
index 0758b843..174906a2 100644
--- a/source/fitz/output-svg.c
+++ b/source/fitz/output-svg.c
@@ -59,7 +59,7 @@ fz_document_writer *
fz_new_svg_writer(fz_context *ctx, const char *path, const char *args)
{
const char *val;
- fz_svg_writer *wri = fz_new_writer(ctx, fz_svg_writer, svg_begin_page, svg_end_page, NULL, svg_drop_writer);
+ fz_svg_writer *wri = fz_new_derived_document_writer(ctx, fz_svg_writer, svg_begin_page, svg_end_page, NULL, svg_drop_writer);
wri->text_format = FZ_SVG_TEXT_AS_PATH;
wri->reuse_images = 1;