1 |
dilfridge 12/07/31 08:51:14 |
2 |
|
3 |
Added: poppler-0.20.2-xyscale.patch |
4 |
Log: |
5 |
Fix printing of some pdf files, bug 426674 |
6 |
|
7 |
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-text/poppler/files/poppler-0.20.2-xyscale.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/poppler/files/poppler-0.20.2-xyscale.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/poppler/files/poppler-0.20.2-xyscale.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: poppler-0.20.2-xyscale.patch |
16 |
=================================================================== |
17 |
From 36481939e3064de920e49d9d1742a85473a50963 Mon Sep 17 00:00:00 2001 |
18 |
From: Thomas Freitag <Thomas.Freitag@××××.de> |
19 |
Date: Sun, 22 Jul 2012 16:40:46 +0000 |
20 |
Subject: Make sure xScale and yScale are always initialized |
21 |
|
22 |
Bug #52215 |
23 |
--- |
24 |
diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc |
25 |
index a01a4b3..e15c2e9 100644 |
26 |
--- a/poppler/PSOutputDev.cc |
27 |
+++ b/poppler/PSOutputDev.cc |
28 |
@@ -3521,6 +3521,7 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) { |
29 |
saveState(NULL); |
30 |
} |
31 |
|
32 |
+ xScale = yScale = 1; |
33 |
switch (mode) { |
34 |
|
35 |
case psModePSOrigPageSizes: |
36 |
@@ -3631,8 +3632,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) { |
37 |
} else { |
38 |
yScale = xScale; |
39 |
} |
40 |
- } else { |
41 |
- xScale = yScale = 1; |
42 |
} |
43 |
// deal with odd bounding boxes or clipping |
44 |
if (clipLLX0 < clipURX0 && clipLLY0 < clipURY0) { |
45 |
@@ -3694,7 +3693,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) { |
46 |
if (tx != 0 || ty != 0) { |
47 |
writePSFmt("{0:.6g} {1:.6g} translate\n", tx, ty); |
48 |
} |
49 |
- xScale = yScale = 1; |
50 |
break; |
51 |
|
52 |
case psModeForm: |
53 |
@@ -3702,7 +3700,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) { |
54 |
writePS("begin xpdf begin\n"); |
55 |
writePS("pdfStartPage\n"); |
56 |
tx = ty = 0; |
57 |
- xScale = yScale = 1; |
58 |
rotate = 0; |
59 |
break; |
60 |
} |
61 |
-- |
62 |
cgit v0.9.0.2-2-gbebe |