summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hüttel <dilfridge@gentoo.org>2012-07-31 08:51:14 +0000
committerAndreas Hüttel <dilfridge@gentoo.org>2012-07-31 08:51:14 +0000
commitc9ce54d4096faf89442fc79a62730183acf97478 (patch)
treef1e6ed36b45b8777f74784c574f71c524b9955da /app-text/poppler/files
parentBackport upstream sax fix, needed for javatoolkit and possibly others. (diff)
downloadhistorical-c9ce54d4096faf89442fc79a62730183acf97478.tar.gz
historical-c9ce54d4096faf89442fc79a62730183acf97478.tar.bz2
historical-c9ce54d4096faf89442fc79a62730183acf97478.zip
Fix printing of some pdf files, bug 426674
Package-Manager: portage-2.2.0_alpha120/cvs/Linux x86_64
Diffstat (limited to 'app-text/poppler/files')
-rw-r--r--app-text/poppler/files/poppler-0.20.2-xyscale.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/app-text/poppler/files/poppler-0.20.2-xyscale.patch b/app-text/poppler/files/poppler-0.20.2-xyscale.patch
new file mode 100644
index 000000000000..6602dc909c2f
--- /dev/null
+++ b/app-text/poppler/files/poppler-0.20.2-xyscale.patch
@@ -0,0 +1,46 @@
+From 36481939e3064de920e49d9d1742a85473a50963 Mon Sep 17 00:00:00 2001
+From: Thomas Freitag <Thomas.Freitag@alfa.de>
+Date: Sun, 22 Jul 2012 16:40:46 +0000
+Subject: Make sure xScale and yScale are always initialized
+
+Bug #52215
+---
+diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
+index a01a4b3..e15c2e9 100644
+--- a/poppler/PSOutputDev.cc
++++ b/poppler/PSOutputDev.cc
+@@ -3521,6 +3521,7 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) {
+ saveState(NULL);
+ }
+
++ xScale = yScale = 1;
+ switch (mode) {
+
+ case psModePSOrigPageSizes:
+@@ -3631,8 +3632,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) {
+ } else {
+ yScale = xScale;
+ }
+- } else {
+- xScale = yScale = 1;
+ }
+ // deal with odd bounding boxes or clipping
+ if (clipLLX0 < clipURX0 && clipLLY0 < clipURY0) {
+@@ -3694,7 +3693,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) {
+ if (tx != 0 || ty != 0) {
+ writePSFmt("{0:.6g} {1:.6g} translate\n", tx, ty);
+ }
+- xScale = yScale = 1;
+ break;
+
+ case psModeForm:
+@@ -3702,7 +3700,6 @@ void PSOutputDev::startPage(int pageNum, GfxState *state) {
+ writePS("begin xpdf begin\n");
+ writePS("pdfStartPage\n");
+ tx = ty = 0;
+- xScale = yScale = 1;
+ rotate = 0;
+ break;
+ }
+--
+cgit v0.9.0.2-2-gbebe