Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp |
diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp |
index c98f8da56faac91d59a528892948f1189af80917..238347a6615690e59981c020249ead2ccb8c513f 100644 |
--- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp |
+++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_document.cpp |
@@ -305,7 +305,7 @@ FX_BOOL CPDF_Document::IsContentUsedElsewhere(FX_DWORD objnum, |
continue; |
} |
if (pContents->GetDirectType() == PDFOBJ_ARRAY) { |
- CPDF_Array* pArray = (CPDF_Array*)pContents->GetDirect(); |
+ CPDF_Array* pArray = pContents->GetDirect()->AsArray(); |
for (FX_DWORD j = 0; j < pArray->GetCount(); j++) { |
CPDF_Object* pRef = pArray->GetElement(j); |
if (pRef == NULL || pRef->GetType() != PDFOBJ_REFERENCE) { |