summaryrefslogtreecommitdiff
path: root/filter/pstops.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-06-23 05:26:17 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-06-23 05:26:17 +0000
commit09a101d671d39312a756c325d8463a1a02f582a6 (patch)
tree09a2338172d0eca839ad4f82524f2846aae6ffdd /filter/pstops.c
parent3d8365b8dc12c660de084e4047b8648fc377ed16 (diff)
downloadcups-09a101d671d39312a756c325d8463a1a02f582a6.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@334 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'filter/pstops.c')
-rw-r--r--filter/pstops.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/filter/pstops.c b/filter/pstops.c
index c74dbd3d0..1a91a0402 100644
--- a/filter/pstops.c
+++ b/filter/pstops.c
@@ -1,5 +1,5 @@
/*
- * "$Id: pstops.c 6420 2007-03-30 20:00:59Z mike $"
+ * "$Id: pstops.c 6578 2007-06-20 17:46:04Z mike $"
*
* PostScript filter for the Common UNIX Printing System (CUPS).
*
@@ -2422,9 +2422,16 @@ set_pstops_options(
if ((choice = ppdFindMarkedChoice(ppd, "ManualFeed")) != NULL)
doc->manual_feed = choice->choice;
- if ((val = cupsGetOption("mirror", num_options, options)) != NULL &&
- (!strcasecmp(val, "true") || !strcasecmp(val, "on") ||
- !strcasecmp(val, "yes")))
+ if ((choice = ppdFindMarkedChoice(ppd, "MirrorPrint")) != NULL)
+ {
+ val = choice->choice;
+ choice->marked = 0;
+ }
+ else
+ val = cupsGetOption("mirror", num_options, options);
+
+ if (val && (!strcasecmp(val, "true") || !strcasecmp(val, "on") ||
+ !strcasecmp(val, "yes")))
doc->mirror = 1;
/*
@@ -3298,5 +3305,5 @@ write_labels(pstops_doc_t *doc, /* I - Document information */
/*
- * End of "$Id: pstops.c 6420 2007-03-30 20:00:59Z mike $".
+ * End of "$Id: pstops.c 6578 2007-06-20 17:46:04Z mike $".
*/