Skip to content

Commit

Permalink
Force copies to 1 for banner and raster files (Issue #1143)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Jan 20, 2025
1 parent d004853 commit 60668b1
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions scheduler/job.c
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
/*
* Job management routines for the CUPS scheduler.
*
* Copyright © 2020-2024 by OpenPrinting.
* Copyright © 2020-2025 by OpenPrinting.
* Copyright © 2007-2019 by Apple Inc.
* Copyright © 1997-2007 by Easy Software Products, all rights reserved.
*
* Licensed under Apache License v2.0. See the file "LICENSE" for more
* information.
*/

/*
* Include necessary headers...
*/

#include "cupsd.h"
#include <grp.h>
#include <cups/backend.h>
Expand Down Expand Up @@ -868,6 +864,9 @@ cupsdContinueJob(cupsd_job_t *job) /* I - Job */
goto abort_job;
}

if (banner_page || (!strcmp(job->filetypes[job->current_file]->super, "image") && (!strcmp(job->filetypes[job->current_file]->type, "pwg-raster") || !strcmp(job->filetypes[job->current_file]->type, "urf"))))
cupsCopyString(copies, "1", sizeof(copies));

/*
* Build the command-line arguments for the filters. Each filter
* has 6 or 7 arguments:
Expand Down

0 comments on commit 60668b1

Please sign in to comment.