mirror of
https://invent.kde.org/graphics/okular
synced 2024-09-17 23:11:48 +00:00
Proper way of checking the flags
This commit is contained in:
parent
999d89b0be
commit
17b93c0872
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue