Index: fpdfsdk/src/fpdf_flatten.cpp |
diff --git a/fpdfsdk/src/fpdf_flatten.cpp b/fpdfsdk/src/fpdf_flatten.cpp |
index fee93f2663023cc9735b65a90bf5e11c34378ff3..f4d49ce1821ea32059b90cc4194a29f8e7214d64 100644 |
--- a/fpdfsdk/src/fpdf_flatten.cpp |
+++ b/fpdfsdk/src/fpdf_flatten.cpp |
@@ -226,7 +226,7 @@ void SetPageContents(CFX_ByteString key, |
} |
case PDFOBJ_ARRAY: { |
- pContentsArray = (CPDF_Array*)pContentsObj; |
+ pContentsArray = pContentsObj->AsArray(); |
break; |
} |
default: |