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 99835a3b94daa71eacf296082701898bd5b65622..7b37b1b9bd5a6ff40dabdc629821283976dce3fe 100644 |
--- a/core/src/fpdfapi/fpdf_render/fpdf_render.cpp |
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render.cpp |
@@ -1225,9 +1225,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; |