Index: core/src/fpdfapi/fpdf_render/fpdf_render.cpp |
diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render.cpp |
index cb5450f913bb9668a9fbb63be83dab5fb9024fea..ccc8ce63cf164c73c2cbfa25797a8f1b80a01864 100644 |
--- a/core/src/fpdfapi/fpdf_render/fpdf_render.cpp |
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render.cpp |
@@ -1224,9 +1224,8 @@ CPDF_TransferFunc* CPDF_DocRenderData::GetTransferFunc(CPDF_Object* pObj) { |
CPDF_Function* pFuncs[3] = {nullptr, nullptr, nullptr}; |
FX_BOOL bUniTransfer = TRUE; |
FX_BOOL bIdentity = TRUE; |
- if (pObj->GetType() == PDFOBJ_ARRAY) { |
+ if (CPDF_Array* pArray = pObj->AsArray()) { |
bUniTransfer = FALSE; |
- CPDF_Array* pArray = (CPDF_Array*)pObj; |
if (pArray->GetCount() < 3) |
return nullptr; |