[poppler] poppler/PSOutputDev.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Fri Mar 23 18:59:14 UTC 2018
poppler/PSOutputDev.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 5e7aef9df36a07c82b0ab40f80fd8464840f6424
Author: Albert Astals Cid <aacid at kde.org>
Date: Fri Mar 23 15:34:56 2018 +0100
PSOutputDev: move i declaration to the for
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index 2f55557c..f20f0783 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -1535,7 +1535,6 @@ void PSOutputDev::writeHeader(const std::vector<int> &pages,
int pageRotate, char *psTitle) {
PSOutPaperSize *size;
double x1, y1, x2, y2;
- int i;
switch (mode) {
case psModePS:
@@ -1581,7 +1580,7 @@ void PSOutputDev::writeHeader(const std::vector<int> &pages,
switch (mode) {
case psModePS:
- for (i = 0; i < paperSizes->getLength(); ++i) {
+ for (int i = 0; i < paperSizes->getLength(); ++i) {
size = (PSOutPaperSize *)paperSizes->get(i);
writePSFmt("%%{0:s} {1:t} {2:d} {3:d} 0 () ()\n",
i==0 ? "DocumentMedia:" : "+", size->name, size->w, size->h);
More information about the poppler
mailing list