[gs-commits] mupdf 1.16.1.2 Fix wasm build.

[email protected] (Sebastian Rasmussen)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
commit c18fa656b25173188a64ae783bc91fa3e894985d
Author: Sebastian Rasmussen <[email protected]>
Date:   Tue Aug 6 17:40:23 2019 +0200

    Fix wasm build.

diff --git a/platform/wasm/wrap.c b/platform/wasm/wrap.c
index cc8cf4a..53dc6cf 100644
--- a/platform/wasm/wrap.c
+++ b/platform/wasm/wrap.c
@@ -78,7 +78,6 @@ char *drawPageAsHTML(fz_document *doc, int number)
 EMSCRIPTEN_KEEPALIVE
 char *drawPageAsSVG(fz_document *doc, int number)
 {
-	static int id = 0;
 	static unsigned char *data = NULL;
 	fz_buffer *buf;
 	fz_output *out;
@@ -95,7 +94,7 @@ char *drawPageAsSVG(fz_document *doc, int number)
 		out = fz_new_output_with_buffer(ctx, buf);
 		{
 			bbox = fz_bound_page(ctx, lastPage);
-			dev = fz_new_svg_device(ctx, out, bbox.x1-bbox.x0, bbox.y1-bbox.y0, FZ_SVG_TEXT_AS_PATH, 0, &id);
+			dev = fz_new_svg_device(ctx, out, bbox.x1-bbox.x0, bbox.y1-bbox.y0, FZ_SVG_TEXT_AS_PATH, 0);
 			fz_run_page(ctx, lastPage, dev, fz_identity, NULL);
 			fz_close_device(ctx, dev);
 			fz_drop_device(ctx, dev);

http://git.ghostscript.com/?p=mupdf.git;a=commit;h=c18fa656b25173188a64ae783bc91fa3e894985d

--
MuPDF library
Artifex Software, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.