[poppler] poppler/PSOutputDev.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Aug 14 15:03:00 PDT 2012


 poppler/PSOutputDev.cc |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

New commits:
commit 3e802949264d9310df057daff891a3fccb2eb8d3
Author: Albert Astals Cid <aacid at kde.org>
Date:   Wed Aug 15 00:02:23 2012 +0200

    PSOutputDev: Always write HiResBoundingBox
    
    Makes some people happier and it doesn't hurt us much
    Bug #53159

diff --git a/poppler/PSOutputDev.cc b/poppler/PSOutputDev.cc
index f414897..93b078a 100644
--- a/poppler/PSOutputDev.cc
+++ b/poppler/PSOutputDev.cc
@@ -15,7 +15,7 @@
 //
 // Copyright (C) 2005 Martin Kretzschmar <martink at gnome.org>
 // Copyright (C) 2005, 2006 Kristian Høgsberg <krh at redhat.com>
-// Copyright (C) 2006-2009, 2011 Albert Astals Cid <aacid at kde.org>
+// Copyright (C) 2006-2009, 2011, 2012 Albert Astals Cid <aacid at kde.org>
 // Copyright (C) 2006 Jeff Muizelaar <jeff at infidigm.net>
 // Copyright (C) 2007, 2008 Brad Hards <bradh at kde.org>
 // Copyright (C) 2008, 2009 Koji Otani <sho at bbr.jp>
@@ -1469,11 +1469,8 @@ void PSOutputDev::writeHeader(int firstPage, int lastPage,
     }
     writePSFmt("%%BoundingBox: {0:d} {1:d} {2:d} {3:d}\n",
 	       (int)floor(x1), (int)floor(y1), (int)ceil(x2), (int)ceil(y2));
-    if (floor(x1) != ceil(x1) || floor(y1) != ceil(y1) ||
-	floor(x2) != ceil(x2) || floor(y2) != ceil(y2)) {
-      writePSFmt("%%HiResBoundingBox: {0:.6g} {1:.6g} {2:.6g} {3:.6g}\n",
+    writePSFmt("%%HiResBoundingBox: {0:.6g} {1:.6g} {2:.6g} {3:.6g}\n",
 		 x1, y1, x2, y2);
-    }
     writePS("%%DocumentSuppliedResources: (atend)\n");
     writePS("%%EndComments\n");
     break;


More information about the poppler mailing list