| OLD | NEW | 
|---|
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 PDFium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 
| 6 | 6 | 
| 7 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" | 7 #include "fpdfsdk/cpdfsdk_formfillenvironment.h" | 
| 8 | 8 | 
| 9 #include <memory> | 9 #include <memory> | 
| 10 | 10 | 
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 759       if (!m_pFocusAnnot) | 759       if (!m_pFocusAnnot) | 
| 760         return TRUE; | 760         return TRUE; | 
| 761     } else { | 761     } else { | 
| 762       m_pFocusAnnot.Reset(pFocusAnnot.Get()); | 762       m_pFocusAnnot.Reset(pFocusAnnot.Get()); | 
| 763     } | 763     } | 
| 764   } | 764   } | 
| 765   return FALSE; | 765   return FALSE; | 
| 766 } | 766 } | 
| 767 | 767 | 
| 768 FX_BOOL CPDFSDK_FormFillEnvironment::GetPermissions(int nFlag) { | 768 FX_BOOL CPDFSDK_FormFillEnvironment::GetPermissions(int nFlag) { | 
| 769   return GetPDFDocument()->GetUserPermissions() & nFlag; | 769   return !!(GetPDFDocument()->GetUserPermissions() & nFlag); | 
| 770 } | 770 } | 
| OLD | NEW | 
|---|