diff options
author | Jun Fang <jun_fang@foxitsoftware.com> | 2016-01-20 08:04:47 +0800 |
---|---|---|
committer | Jun Fang <jun_fang@foxitsoftware.com> | 2016-01-20 08:04:47 +0800 |
commit | 752395430376536487352815e6107c32dac7d69e (patch) | |
tree | 46c00fbf689d893f32850bae1120f41239f19767 /fpdfsdk/include | |
parent | 4a2aa1a90d89b88036b0bff432ffefa183ea80d0 (diff) | |
download | pdfium-752395430376536487352815e6107c32dac7d69e.tar.xz |
Fix crashing in CPDFXFA_Document::GetPage()
BUG=pdfium:332
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1539193003 .
Diffstat (limited to 'fpdfsdk/include')
-rw-r--r-- | fpdfsdk/include/fpdfxfa/fpdfxfa_page.h | 1 | ||||
-rw-r--r-- | fpdfsdk/include/fsdk_mgr.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/fpdfsdk/include/fpdfxfa/fpdfxfa_page.h b/fpdfsdk/include/fpdfxfa/fpdfxfa_page.h index d88ba9f745..db47784704 100644 --- a/fpdfsdk/include/fpdfxfa/fpdfxfa_page.h +++ b/fpdfsdk/include/fpdfxfa/fpdfxfa_page.h @@ -20,6 +20,7 @@ class CPDFXFA_Page { int GetPageIndex() { return m_iPageIndex; }
CPDF_Page* GetPDFPage() { return m_pPDFPage; }
IXFA_PageView* GetXFAPageView() { return m_pXFAPageView; }
+ void SetXFAPageView(IXFA_PageView* pPageView) { m_pXFAPageView = pPageView; }
FX_FLOAT GetPageWidth();
FX_FLOAT GetPageHeight();
diff --git a/fpdfsdk/include/fsdk_mgr.h b/fpdfsdk/include/fsdk_mgr.h index 51f16919d4..cd5db5440f 100644 --- a/fpdfsdk/include/fsdk_mgr.h +++ b/fpdfsdk/include/fsdk_mgr.h @@ -635,6 +635,7 @@ class CPDFSDK_PageView final { int GetPageIndex(); void LoadFXAnnots(); + void ClearFXAnnots(); void SetValid(FX_BOOL bValid) { m_bValid = bValid; } FX_BOOL IsValid() { return m_bValid; } void SetLock(FX_BOOL bLocked) { m_bLocked = bLocked; } |