Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2716)

Unified Diff: core/fpdfdoc/cpdf_pagelabel.cpp

Issue 2354933002: Rename CPDFXFA_Document::GetPageCount (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/fpdfdoc/cpdf_pagelabel.cpp
diff --git a/core/fpdfdoc/cpdf_pagelabel.cpp b/core/fpdfdoc/cpdf_pagelabel.cpp
index 2f02e84bf35d99d624d0b17250e8e53408699f4d..6cf6a8a3043d2831abb5861412c29817865f77b1 100644
--- a/core/fpdfdoc/cpdf_pagelabel.cpp
+++ b/core/fpdfdoc/cpdf_pagelabel.cpp
@@ -121,6 +121,7 @@ int32_t CPDF_PageLabel::GetPageByLabel(const CFX_ByteStringC& bsLabel) const {
if (!pPDFRoot)
return -1;
+ // TOOD(dsinclair): Verify this works for XFA pages.
int nPages = m_pDocument->GetPageCount();
for (int i = 0; i < nPages; i++) {
if (PDF_EncodeText(GetLabel(i)).Compare(bsLabel))

Powered by Google App Engine
This is Rietveld 408576698