Proper way of checking the flags

This commit is contained in:
Albert Astals Cid 2012-12-31 12:03:49 +01:00
parent 999d89b0be
commit 17b93c0872

View file

@ -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; \