From: | "Timo Gurr (tgurr)" <tgurr@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-print/cups-filters/files: cups-filters-1.0.24-rev7009.diff |
Date: | Fri, 28 Sep 2012 18:40:22 |
Message-Id: | 20120928184011.D677921601@flycatcher.gentoo.org |
1 | tgurr 12/09/28 18:40:11 |
2 | |
3 | Added: cups-filters-1.0.24-rev7009.diff |
4 | Log: |
5 | Add Upstream patch to fix bug #434686, thanks to everyone involved. |
6 | |
7 | (Portage version: 2.2.0_alpha121/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-print/cups-filters/files/cups-filters-1.0.24-rev7009.diff |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups-filters/files/cups-filters-1.0.24-rev7009.diff?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/cups-filters/files/cups-filters-1.0.24-rev7009.diff?rev=1.1&content-type=text/plain |
14 | |
15 | Index: cups-filters-1.0.24-rev7009.diff |
16 | =================================================================== |
17 | === modified file 'filter/pdftopdf/qpdf_pdftopdf_processor.cc' |
18 | --- filter/pdftopdf/qpdf_pdftopdf_processor.cc 2012-09-06 21:13:06 +0000 |
19 | +++ filter/pdftopdf/qpdf_pdftopdf_processor.cc 2012-09-08 14:20:18 +0000 |
20 | @@ -464,9 +464,10 @@ |
21 | void QPDF_PDFTOPDF_Processor::setComments(const std::vector<std::string> &comments) // {{{ |
22 | { |
23 | extraheader.clear(); |
24 | - for (auto &it : comments) { |
25 | - assert(it.at(0)=='%'); |
26 | - extraheader.append(it); |
27 | + const int len=comments.size(); |
28 | + for (int iA=0;iA<len;iA++) { |
29 | + assert(comments[iA].at(0)=='%'); |
30 | + extraheader.append(comments[iA]); |
31 | extraheader.push_back('\n'); |
32 | } |
33 | } |