mirror of https://gitee.com/openkylin/cups.git
Fix jobs with multiple files or multiple formats
Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=972242 Bug: https://github.com/apple/cups/issues/4348 Patch-Name: fixes-for-jobs-with-multiple-files-and-multiple-formats.patch Gbp-Pq: Name 0003-Fix-jobs-with-multiple-files-or-multiple-formats.patch
This commit is contained in:
parent
8dcd36bdbe
commit
c538677bf8
|
@ -1804,7 +1804,10 @@ main(int argc, /* I - Number of command-line args */
|
||||||
ippAddBoolean(request, IPP_TAG_OPERATION, "last-document",
|
ippAddBoolean(request, IPP_TAG_OPERATION, "last-document",
|
||||||
(i + 1) >= num_files);
|
(i + 1) >= num_files);
|
||||||
|
|
||||||
if (document_format)
|
if (num_files > 1)
|
||||||
|
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
|
||||||
|
"document-format", NULL, "application/octet-stream");
|
||||||
|
else if (document_format)
|
||||||
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
|
ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
|
||||||
"document-format", NULL, document_format);
|
"document-format", NULL, document_format);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue