summaryrefslogtreecommitdiff
path: root/fpdfsdk/include/fpdfxfa/fpdfxfa_page.h
diff options
context:
space:
mode:
authorJun Fang <jun_fang@foxitsoftware.com>2016-01-20 08:04:47 +0800
committerJun Fang <jun_fang@foxitsoftware.com>2016-01-20 08:04:47 +0800
commit752395430376536487352815e6107c32dac7d69e (patch)
tree46c00fbf689d893f32850bae1120f41239f19767 /fpdfsdk/include/fpdfxfa/fpdfxfa_page.h
parent4a2aa1a90d89b88036b0bff432ffefa183ea80d0 (diff)
downloadpdfium-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/fpdfxfa/fpdfxfa_page.h')
-rw-r--r--fpdfsdk/include/fpdfxfa/fpdfxfa_page.h1
1 files changed, 1 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();