[Pkg-cups-devel] r730 - in cupsys/branches/cups-1.2-ubuntu/debian: . patches
Till Kamppeter
till-guest at alioth.debian.org
Fri Mar 21 22:37:05 UTC 2008
Author: till-guest
Date: Fri Mar 21 22:37:05 2008
New Revision: 730
Log:
Updated pdftops-cups-1.4.dpatch according to CUPS STR #2716.
Modified:
cupsys/branches/cups-1.2-ubuntu/debian/changelog
cupsys/branches/cups-1.2-ubuntu/debian/patches/pdftops-cups-1.4.dpatch
Modified: cupsys/branches/cups-1.2-ubuntu/debian/changelog
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/changelog (original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/changelog Fri Mar 21 22:37:05 2008
@@ -1,10 +1,12 @@
cupsys (1.3.6-2ubuntu3) hardy; urgency=low
+ * pdftops-cups-1.4.dpatch: Updated to Mike Sweet's patch version from CUPS
+ STR #2716.
* debian/patches/ppd-poll-with-client-conf.dpatch: If there is a client.conf
pointing to a remote server, clients were not able to poll the PPD options
from printers on that server (CUPS STRs #2731, #2763)
- -- Till Kamppeter <till.kamppeter at gmail.com> Thu, 20 Mar 2008 17:01:06 +0100
+ -- Till Kamppeter <till.kamppeter at gmail.com> Thu, 21 Mar 2008 17:01:06 +0100
cupsys (1.3.6-2ubuntu2) hardy; urgency=low
Modified: cupsys/branches/cups-1.2-ubuntu/debian/patches/pdftops-cups-1.4.dpatch
==============================================================================
--- cupsys/branches/cups-1.2-ubuntu/debian/patches/pdftops-cups-1.4.dpatch (original)
+++ cupsys/branches/cups-1.2-ubuntu/debian/patches/pdftops-cups-1.4.dpatch Fri Mar 21 22:37:05 2008
@@ -255,13 +255,13 @@
+
+ if (orientation & 1)
+ {
-+ snprintf(pdfwidth, sizeof(pdfwidth), "%d", (int)(size->length));
-+ snprintf(pdfheight, sizeof(pdfheight), "%d", (int)(size->width));
++ snprintf(pdfwidth, sizeof(pdfwidth), "%.0f", size->length);
++ snprintf(pdfheight, sizeof(pdfheight), "%.0f", size->width);
+ }
+ else
+ {
-+ snprintf(pdfwidth, sizeof(pdfwidth), "%d", (int)(size->width));
-+ snprintf(pdfheight, sizeof(pdfheight), "%d", (int)(size->length));
++ snprintf(pdfwidth, sizeof(pdfwidth), "%.0f", size->width);
++ snprintf(pdfheight, sizeof(pdfheight), "%.0f", size->length);
+ }
+
+ pdfargv[pdfargc++] = (char *)"-paperw";
More information about the Pkg-cups-devel
mailing list