Index: core/fpdfdoc/cpdf_linklist.cpp |
diff --git a/core/fpdfdoc/cpdf_linklist.cpp b/core/fpdfdoc/cpdf_linklist.cpp |
index 5ef8f39da617b9f897f59bcaec41ba7c560df207..d9a10ef3e287c3245887c1851fce99515f9346bb 100644 |
--- a/core/fpdfdoc/cpdf_linklist.cpp |
+++ b/core/fpdfdoc/cpdf_linklist.cpp |
@@ -57,13 +57,13 @@ CPDF_Link CPDF_LinkList::GetLinkAtPoint(CPDF_Page* pPage, |
void CPDF_LinkList::LoadPageLinks(CPDF_Page* pPage, |
std::vector<CPDF_Dictionary*>* pList) { |
- CPDF_Array* pAnnotList = pPage->m_pFormDict->GetArrayBy("Annots"); |
+ CPDF_Array* pAnnotList = pPage->m_pFormDict->GetArrayFor("Annots"); |
if (!pAnnotList) |
return; |
for (size_t i = 0; i < pAnnotList->GetCount(); ++i) { |
CPDF_Dictionary* pAnnot = pAnnotList->GetDictAt(i); |
- bool add_link = (pAnnot && pAnnot->GetStringBy("Subtype") == "Link"); |
+ bool add_link = (pAnnot && pAnnot->GetStringFor("Subtype") == "Link"); |
// Add non-links as nullptrs to preserve z-order. |
pList->push_back(add_link ? pAnnot : nullptr); |
} |