Index: fpdfsdk/cpdfsdk_formfillenvironment.cpp |
diff --git a/fpdfsdk/cpdfsdk_formfillenvironment.cpp b/fpdfsdk/cpdfsdk_formfillenvironment.cpp |
index d93e309d2fabc997faee365b93c5705bcc717868..f729f717d90b84230678935bfe8078ac78699b12 100644 |
--- a/fpdfsdk/cpdfsdk_formfillenvironment.cpp |
+++ b/fpdfsdk/cpdfsdk_formfillenvironment.cpp |
@@ -766,5 +766,5 @@ FX_BOOL CPDFSDK_FormFillEnvironment::KillFocusAnnot(uint32_t nFlag) { |
} |
FX_BOOL CPDFSDK_FormFillEnvironment::GetPermissions(int nFlag) { |
- return GetPDFDocument()->GetUserPermissions() & nFlag; |
+ return !!(GetPDFDocument()->GetUserPermissions() & nFlag); |
} |