From 9581b62485000143f1f2809d5adc5be2c529da66 Mon Sep 17 00:00:00 2001 From: Karol Krenski Date: Fri, 2 Jun 2006 16:51:25 +0000 Subject: [PATCH] - upstream patch to fix STR #1740 Changed files: cups-str1740.patch -> 1.1 --- cups-str1740.patch | 48 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 cups-str1740.patch diff --git a/cups-str1740.patch b/cups-str1740.patch new file mode 100644 index 0000000..073cb73 --- /dev/null +++ b/cups-str1740.patch @@ -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); + } + } + -- 2.44.0