[poppler] Branch 'poppler-0.22' - goo/JpegWriter.cc

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Feb 12 13:59:04 PST 2013


 goo/JpegWriter.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 9fc4b9f7a7e6105a6fd85aed9c21b78742e89ddd
Author: Peter Breitenlohner <peb at mppmu.mpg.de>
Date:   Tue Feb 12 22:58:17 2013 +0100

    true->TRUE
    
    Fixes compilation with jpeglib9

diff --git a/goo/JpegWriter.cc b/goo/JpegWriter.cc
index 09f9b7b..9b7c505 100644
--- a/goo/JpegWriter.cc
+++ b/goo/JpegWriter.cc
@@ -8,6 +8,7 @@
 // Copyright (C) 2010, 2012 Adrian Johnson <ajohnson at redneon.com>
 // Copyright (C) 2010 Harry Roberts <harry.roberts at midnight-labs.org>
 // Copyright (C) 2011 Thomas Freitag <Thomas.Freitag at alfa.de>
+// Copyright (C) 2013 Peter Breitenlohner <peb at mppmu.mpg.de>
 //
 //========================================================================
 
@@ -117,7 +118,7 @@ bool JpegWriter::init(FILE *f, int width, int height, int hDPI, int vDPI)
 
   // Set quality
   if (priv->quality >= 0 && priv->quality <= 100) {
-    jpeg_set_quality(&priv->cinfo, priv->quality, true);
+    jpeg_set_quality(&priv->cinfo, priv->quality, TRUE);
   }
 
   // Use progressive mode


More information about the poppler mailing list