]>
Commit | Line | Data |
---|---|---|
2c78c88d | 1 | --- cups-1.2.1/filter/pstops.c.orig 2006-05-22 19:31:23.000000000 +0100 |
2 | +++ cups-1.2.1/filter/pstops.c 2006-06-02 15:08:26.000000000 +0100 | |
3 | @@ -1305,6 +1305,9 @@ | |
4 | ||
5 | if (first_page) | |
6 | { | |
7 | + char *page_setup; /* PageSetup commands to send */ | |
8 | + | |
9 | + | |
10 | doc_puts(doc, "%%BeginPageSetup\n"); | |
11 | ||
12 | if (pageinfo->num_options > 0) | |
13 | @@ -1344,20 +1347,28 @@ | |
14 | */ | |
15 | ||
16 | if (doc_setup) | |
17 | + { | |
18 | doc_puts(doc, doc_setup); | |
19 | + free(doc_setup); | |
20 | + } | |
21 | ||
22 | if (any_setup) | |
23 | + { | |
24 | doc_puts(doc, any_setup); | |
25 | + free(any_setup); | |
26 | + } | |
27 | + } | |
28 | ||
29 | - /* | |
30 | - * Free the command strings... | |
31 | - */ | |
32 | + /* | |
33 | + * Output commands for the current page... | |
34 | + */ | |
35 | ||
36 | - if (doc_setup) | |
37 | - free(doc_setup); | |
38 | + page_setup = ppdEmitString(ppd, PPD_ORDER_PAGE, 0); | |
39 | ||
40 | - if (any_setup) | |
41 | - free(any_setup); | |
42 | + if (page_setup) | |
43 | + { | |
44 | + doc_puts(doc, page_setup); | |
45 | + free(page_setup); | |
46 | } | |
47 | } | |
48 |