Commit 7e35a9c0 authored by Pino Toscano's avatar Pino Toscano

due to a small bug in poppler-qt4, we cannot trust the document render hints

so, store ourselves the flags

svn path=/trunk/KDE/kdegraphics/okular/; revision=757637
parent c06deaf9
......@@ -1023,13 +1023,17 @@ bool PDFGenerator::setAAOptions()
{
bool changed = false;
#ifdef HAVE_POPPLER_0_6
Poppler::Document::RenderHints oldhints = pdfdoc->renderHints();
static Poppler::Document::RenderHints oldhints = 0;
#define SET_HINT(hintname, hintdefvalue, hintflag) \
{ \
bool newhint = documentMetaData(hintname, hintdefvalue).toBool(); \
if (newhint != (oldhints & hintflag)) \
{ \
pdfdoc->setRenderHint(hintflag); \
pdfdoc->setRenderHint(hintflag, newhint); \
if (newhint) \
oldhints |= hintflag; \
else \
oldhints &= ~(int)hintflag; \
changed = true; \
} \
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment