Index: core/src/fpdfdoc/doc_action.cpp |
diff --git a/core/src/fpdfdoc/doc_action.cpp b/core/src/fpdfdoc/doc_action.cpp |
index 409d0504840015ce4e1f0c236043963507c55a29..4caa500fee71a5d0ecc72181f0d11f2b1f441fe1 100644 |
--- a/core/src/fpdfdoc/doc_action.cpp |
+++ b/core/src/fpdfdoc/doc_action.cpp |
@@ -17,7 +17,7 @@ CPDF_Dest CPDF_Action::GetDest(CPDF_Document* pDoc) const { |
if (!pDest) { |
return CPDF_Dest(); |
} |
- if (pDest->GetType() == PDFOBJ_STRING || pDest->GetType() == PDFOBJ_NAME) { |
+ if (pDest->GetType() == PDFOBJ_STRING || pDest->IsName()) { |
CPDF_NameTree name_tree(pDoc, FX_BSTRC("Dests")); |
CFX_ByteStringC name = pDest->GetString(); |
return CPDF_Dest(name_tree.LookupNamedDest(pDoc, name)); |