summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authormarkd <markd>2008-01-22 23:59:00 +0000
committermarkd <markd>2008-01-22 23:59:00 +0000
commitfcaf2bd655697d812fc46d9b9cc9fc6cead820f8 (patch)
treea90dc97bc6aa1719a975faade89f8c46a7413d3b /print
parent7e58703974d87dfcc01bf1fd3866ad7797ba51c8 (diff)
downloadpkgsrc-fcaf2bd655697d812fc46d9b9cc9fc6cead820f8.tar.gz
Missed this patch
Diffstat (limited to 'print')
-rw-r--r--print/cups/patches/patch-ae18
1 files changed, 18 insertions, 0 deletions
diff --git a/print/cups/patches/patch-ae b/print/cups/patches/patch-ae
new file mode 100644
index 00000000000..586684c9d67
--- /dev/null
+++ b/print/cups/patches/patch-ae
@@ -0,0 +1,18 @@
+$NetBSD: patch-ae,v 1.18 2008/01/22 23:59:00 markd Exp $
+
+post 1.3.5 fix from svn.
+
+Index: pstops.c
+===================================================================
+--- filter/pstops.c (revision 7067)
++++ filter/pstops.c (revision 7175)
+@@ -889,7 +889,8 @@
+ * Finish up the last page(s)...
+ */
+
+- if (number && !is_first_page(number) && cupsArrayLast(doc->pages))
++ if (number && is_not_last_page(number) && cupsArrayLast(doc->pages) &&
++ check_range(doc, (number - 1) / doc->number_up + 1))
+ {
+ pageinfo = (pstops_page_t *)cupsArrayLast(doc->pages);
+