Commit 17b93c08 authored by Albert Astals Cid's avatar Albert Astals Cid

Proper way of checking the flags

parent 999d89b0
......@@ -1291,7 +1291,7 @@ bool PDFGenerator::setDocumentRenderHints()
#define SET_HINT(hintname, hintdefvalue, hintflag) \
{ \
bool newhint = documentMetaData(hintname, hintdefvalue).toBool(); \
if (newhint != (oldhints & hintflag)) \
if (newhint != oldhints.testFlag(hintflag)) \
{ \
pdfdoc->setRenderHint(hintflag, newhint); \
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