Index: fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp |
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp |
index 7ee3cbb85943d2ead27a3859130b23dc89f0a1f3..b71a38e1c5e68b4ebc5d1061ce5d0b2ed872469b 100644 |
--- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp |
+++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp |
@@ -267,7 +267,7 @@ void CPDFXFA_DocEnvironment::PageViewEvent(CXFA_FFPageView* pPageView, |
XFA_PAGEVIEWEVENT_StopLayout != dwFlags) |
return; |
- int nNewCount = m_pDocument->GetPageCount(); |
+ int nNewCount = m_pDocument->GetXFAPageCount(); |
if (nNewCount == m_pDocument->GetOriginalPageCount()) |
return; |
@@ -330,7 +330,7 @@ void CPDFXFA_DocEnvironment::WidgetPreRemove(CXFA_FFWidget* hWidget, |
int32_t CPDFXFA_DocEnvironment::CountPages(CXFA_FFDoc* hDoc) { |
if (hDoc == m_pDocument->GetXFADoc() && m_pDocument->GetSDKDoc()) |
- return m_pDocument->GetPageCount(); |
+ return m_pDocument->GetXFAPageCount(); |
return 0; |
} |