]> git.ipfire.org Git - thirdparty/cups-filters.git/commitdiff
gstoraster: Fixed build failure
authorTill Kamppeter <till.kamppeter@gmail.com>
Thu, 8 Jul 2021 07:15:41 +0000 (09:15 +0200)
committerTill Kamppeter <till.kamppeter@gmail.com>
Thu, 8 Jul 2021 07:15:41 +0000 (09:15 +0200)
filter/gstoraster.c

index 3df6ddc18c4f1efb996d6b972d3833533e1983ce..87ff948e6fcbaa21da3ec007f6b38cd6ecae5039 100644 (file)
@@ -916,8 +916,8 @@ main (int argc, char **argv, char *envp[])
      * cupsRasterParseIPPOptions() would populate the TotalPageCount field
      * (h.cupsInteger[0]) if CUPS passed "job-impressions" to this filter.
      * CUPS does not do so, so we set it manually here. */
-    if (pages > 0 && pwgraster) {
-      h.cupsInteger[0] = pages;
+    if (pagecount > 0 && pwgraster) {
+      h.cupsInteger[0] = pagecount;
     }
 #else
     fprintf(stderr, "ERROR: No PPD file specified.\n");