summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/doc_link.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/doc_link.cpp')
-rw-r--r--core/fpdfdoc/doc_link.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fpdfdoc/doc_link.cpp b/core/fpdfdoc/doc_link.cpp
index 3f97024237..723955f9ea 100644
--- a/core/fpdfdoc/doc_link.cpp
+++ b/core/fpdfdoc/doc_link.cpp
@@ -75,7 +75,7 @@ CFX_FloatRect CPDF_Link::GetRect() {
return m_pDict->GetRectBy("Rect");
}
CPDF_Dest CPDF_Link::GetDest(CPDF_Document* pDoc) {
- CPDF_Object* pDest = m_pDict->GetElementValue("Dest");
+ CPDF_Object* pDest = m_pDict->GetDirectObjectBy("Dest");
if (!pDest)
return CPDF_Dest();