Index: fpdfsdk/fpdf_flatten.cpp |
diff --git a/fpdfsdk/fpdf_flatten.cpp b/fpdfsdk/fpdf_flatten.cpp |
index c2ecbc84a629a1f09c54d885308e294fc18336ff..46501865e5a8d0f8d0a60a42e8e533ec7d9cd21a 100644 |
--- a/fpdfsdk/fpdf_flatten.cpp |
+++ b/fpdfsdk/fpdf_flatten.cpp |
@@ -96,7 +96,7 @@ int ParserAnnots(CPDF_Document* pSourceDoc, |
uint32_t dwSize = pAnnots->GetCount(); |
for (int i = 0; i < (int)dwSize; i++) { |
- CPDF_Dictionary* pAnnotDic = ToDictionary(pAnnots->GetElementValue(i)); |
+ CPDF_Dictionary* pAnnotDic = ToDictionary(pAnnots->GetDirectObjectAt(i)); |
if (!pAnnotDic) |
continue; |