public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in app-text/poppler/files: poppler-0.20.2-xyscale.patch
@ 2012-07-31  8:51 Andreas HAttel (dilfridge)
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas HAttel (dilfridge) @ 2012-07-31  8:51 UTC (permalink / raw
  To: gentoo-commits

dilfridge    12/07/31 08:51:14

  Added:                poppler-0.20.2-xyscale.patch
  Log:
  Fix printing of some pdf files, bug 426674
  
  (Portage version: 2.2.0_alpha120/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  app-text/poppler/files/poppler-0.20.2-xyscale.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/poppler/files/poppler-0.20.2-xyscale.patch?rev=1.1&view=markup
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

Index: poppler-0.20.2-xyscale.patch
===================================================================
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





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in app-text/poppler/files: poppler-0.20.2-xyscale.patch
@ 2012-10-11 18:38 Maciej Mrozowski (reavertm)
  0 siblings, 0 replies; 2+ messages in thread
From: Maciej Mrozowski (reavertm) @ 2012-10-11 18:38 UTC (permalink / raw
  To: gentoo-commits

reavertm    12/10/11 18:38:30

  Removed:              poppler-0.20.2-xyscale.patch
  Log:
  Version bump, remove old.
  
  (Portage version: 2.2.0_alpha137/cvs/Linux x86_64)


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-11 18:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-11 18:38 [gentoo-commits] gentoo-x86 commit in app-text/poppler/files: poppler-0.20.2-xyscale.patch Maciej Mrozowski (reavertm)
  -- strict thread matches above, loose matches on Subject: below --
2012-07-31  8:51 Andreas HAttel (dilfridge)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox