SOURCES: cups-str1740.patch (NEW) - upstream patch to fix STR #1740
charles
charles at pld-linux.org
Fri Jun 2 18:51:30 CEST 2006
Author: charles Date: Fri Jun 2 16:51:30 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- upstream patch to fix STR #1740
---- Files affected:
SOURCES:
cups-str1740.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/cups-str1740.patch
diff -u /dev/null SOURCES/cups-str1740.patch:1.1
--- /dev/null Fri Jun 2 18:51:30 2006
+++ SOURCES/cups-str1740.patch Fri Jun 2 18:51:25 2006
@@ -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);
+ }
+ }
+
================================================================
More information about the pld-cvs-commit
mailing list