Merge pull request #951 from richardg867/master

PostScript printer: actually save .ps files if GhostScript is absent
This commit is contained in:
Miran Grča
2020-08-01 00:33:58 +02:00
committed by GitHub

View File

@@ -140,7 +140,7 @@ convert_to_pdf(ps_t *dev)
output_fn[0] = 0;
wcscat(output_fn, input_fn);
wcscpy(output_fn + wcslen(output_fn) - 4, L".pdf");
wcscpy(output_fn + wcslen(output_fn) - 3, L".pdf");
gsargv[0] = L"";
gsargv[1] = L"-dNOPAUSE";
@@ -201,7 +201,7 @@ write_buffer(ps_t *dev, bool newline)
}
if (dev->filename[0] == 0) {
plat_tempfile(dev->filename, NULL, L".tmp");
plat_tempfile(dev->filename, NULL, L".ps");
}
path[0] = 0;