summaryrefslogtreecommitdiff
path: root/devices
diff options
context:
space:
mode:
authorJulian Smith <julian.smith@artifex.com>2021-02-16 15:13:40 +0000
committerJulian Smith <julian.smith@artifex.com>2021-02-18 16:58:06 +0000
commitcda1ad8f402829c4677f73d8f805b119632dad5f (patch)
tree5b39c13e7314833783010f67e9411a9a6a85ccdc /devices
parent4e9c31c3b6660d50afbca498ceddf0179ca2540c (diff)
downloadghostpdl-cda1ad8f402829c4677f73d8f805b119632dad5f.tar.gz
devices/vector/gdevdocxw.c: fixed creation of .docx when not using file-per-page.
Diffstat (limited to 'devices')
-rw-r--r--devices/vector/gdevdocxw.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/devices/vector/gdevdocxw.c b/devices/vector/gdevdocxw.c
index 2844cb6a0..1e2cd9d92 100644
--- a/devices/vector/gdevdocxw.c
+++ b/devices/vector/gdevdocxw.c
@@ -403,6 +403,10 @@ docxwrite_close_device(gx_device * dev)
{
int code = 0;
gx_device_docxwrite_t *const tdev = (gx_device_docxwrite_t *) dev;
+ if (!tdev->file_per_page)
+ {
+ s_end_page(tdev, true /*write_file*/);
+ }
extract_end(&tdev->extract);
extract_alloc_destroy(&tdev->alloc);
return code;