[poppler] Poppler 0.22.1 released
Peter Breitenlohner
peb at mppmu.mpg.de
Mon Feb 11 00:43:45 PST 2013
On Sun, 10 Feb 2013, Victor Ivrii wrote:
> Poppler and seems to have problems with the latest jpegsrc.v9; it return an
> error on make
>
> JpegWriter.cc: In member function 'virtual bool JpegWriter::init(FILE*,
> int, int, int, int)':
> JpegWriter.cc:120: error: cannot convert 'bool' to 'boolean' for argument
> '3' to 'void jpeg_set_quality(jpeg_compress_struct*, int, boolean)'
Hi,
with this patch building poppler-0.22.1 with jpeg v9 succeeds.
BTW: Why was there one true while all the others are TRUE?
>From 095d755e63fcc42750d3640da9b994c615349466 Mon Sep 17 00:00:00 2001
From: Peter Breitenlohner <peb at mppmu.mpg.de>
Date: Mon, 11 Feb 2013 09:34:47 +0100
Subject: [PATCH] Fix for jpeg v9
Signed-off-by: Peter Breitenlohner <peb at mppmu.mpg.de>
---
goo/JpegWriter.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/goo/JpegWriter.cc b/goo/JpegWriter.cc
index 09f9b7b..61b5fd0 100644
--- a/goo/JpegWriter.cc
+++ b/goo/JpegWriter.cc
@@ -117,7 +117,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
--
1.7.3.1
Regards
Peter Breitenlohner <peb at mppmu.mpg.de>
More information about the poppler
mailing list