diff options
Diffstat (limited to 'core/fpdfapi/parser/cpdf_document.cpp')
-rw-r--r-- | core/fpdfapi/parser/cpdf_document.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfapi/parser/cpdf_document.cpp b/core/fpdfapi/parser/cpdf_document.cpp index 995d7edaf9..59927bc250 100644 --- a/core/fpdfapi/parser/cpdf_document.cpp +++ b/core/fpdfapi/parser/cpdf_document.cpp @@ -95,7 +95,7 @@ void InsertWidthArray1(CFX_Font* pFont, int CountPages(CPDF_Dictionary* pPages, std::set<CPDF_Dictionary*>* visited_pages) { int count = pPages->GetIntegerFor("Count"); - if (count > 0 && count < FPDF_PAGE_MAX_NUM) + if (count > 0 && count < CPDF_Document::kPageMaxNum) return count; CPDF_Array* pKidList = pPages->GetArrayFor("Kids"); if (!pKidList) |