From 15c15516c1949e8eb2081e324e610397fbcc1b2c Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 19 Dec 2016 12:47:02 +0000 Subject: Fix broken mutool draw SVG output SVG output in mutool produces a file per page; attempting to reopen the same file each time was tripping the new fz_remove call. Now only open a page at a time. --- source/tools/mudraw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/tools') diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 6134b12d..16163b3e 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -1575,9 +1575,10 @@ int mudraw_main(int argc, char **argv) } else #endif - if (output_format == OUT_GPROOF) + if (output_format == OUT_GPROOF || output_format == OUT_SVG) { /* GPROOF files are saved direct. Do not open "output". */ + /* SVG files are always opened for each page. Do not open "output". */ } else if (output && (output[0] != '-' || output[1] != 0) && *output != 0) { -- cgit v1.2.3