]> git.pld-linux.org Git - packages/cups.git/commitdiff
- upstream patch to fix STR #1740
authorKarol Krenski <charles@pld-linux.org>
Fri, 2 Jun 2006 16:51:25 +0000 (16:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cups-str1740.patch -> 1.1

cups-str1740.patch [new file with mode: 0644]

diff --git a/cups-str1740.patch b/cups-str1740.patch
new file mode 100644 (file)
index 0000000..073cb73
--- /dev/null
@@ -0,0 +1,48 @@
+--- cups-1.2.1/filter/pstops.c.orig    2006-05-22 19:31:23.000000000 +0100
++++ cups-1.2.1/filter/pstops.c 2006-06-02 15:08:26.000000000 +0100
+@@ -1305,6 +1305,9 @@
+   if (first_page)
+   {
++    char      *page_setup;            /* PageSetup commands to send */
++
++
+     doc_puts(doc, "%%BeginPageSetup\n");
+     if (pageinfo->num_options > 0)
+@@ -1344,20 +1347,28 @@
+       */
+       if (doc_setup)
++      {
+       doc_puts(doc, doc_setup);
++      free(doc_setup);
++      }
+       if (any_setup)
++      {
+       doc_puts(doc, any_setup);
++      free(any_setup);
++      }
++    }
+-     /*
+-      * Free the command strings...
+-      */
++   /*
++    * Output commands for the current page...
++    */
+-      if (doc_setup)
+-      free(doc_setup);
++    page_setup = ppdEmitString(ppd, PPD_ORDER_PAGE, 0);
+-      if (any_setup)
+-      free(any_setup);
++    if (page_setup)
++    {
++      doc_puts(doc, page_setup);
++      free(page_setup);
+     }
+   }
This page took 0.079518 seconds and 4 git commands to generate.