| Index: core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp b/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp
|
| index 222f58c088c58b5347a70ff412f8e86d2d04ea7b..e4afdd80c2d39aae647e72e1cae5be0e15066c55 100644
|
| --- a/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp
|
| +++ b/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp
|
| @@ -1056,8 +1056,8 @@ CFX_DIBitmap* CPDF_RenderStatus::LoadSMask(CPDF_Dictionary* pSMaskDict,
|
| }
|
| CPDF_Function* pFunc = NULL;
|
| CPDF_Object* pFuncObj = pSMaskDict->GetElementValue(FX_BSTRC("TR"));
|
| - if (pFuncObj && (pFuncObj->GetType() == PDFOBJ_DICTIONARY ||
|
| - pFuncObj->GetType() == PDFOBJ_STREAM)) {
|
| + if (pFuncObj &&
|
| + (pFuncObj->IsDictionary() || pFuncObj->GetType() == PDFOBJ_STREAM)) {
|
| pFunc = CPDF_Function::Load(pFuncObj);
|
| }
|
| CFX_AffineMatrix matrix = *pMatrix;
|
|
|