summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-12-19 12:47:02 +0000
committerRobin Watts <robin.watts@artifex.com>2016-12-19 12:56:51 +0000
commit15c15516c1949e8eb2081e324e610397fbcc1b2c (patch)
tree0b0ed589b348992791a05d8513a64e1ae0df4fd7
parent247fda9a136ff14a33aef4c3b7404a04cf3d3752 (diff)
downloadmupdf-15c15516c1949e8eb2081e324e610397fbcc1b2c.tar.xz
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.
-rw-r--r--source/tools/mudraw.c3
1 files changed, 2 insertions, 1 deletions
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)
{