| 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 2754223f3ecc95a709da5b4c76482d4683ae6580..0acaeba14c9987ccbffeafb88b111fb820533929 100644
|
| --- a/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp
|
| +++ b/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp
|
| @@ -1055,10 +1055,9 @@ CFX_DIBitmap* CPDF_RenderStatus::LoadSMask(CPDF_Dictionary* pSMaskDict,
|
| }
|
| CPDF_Function* pFunc = NULL;
|
| CPDF_Object* pFuncObj = pSMaskDict->GetElementValue(FX_BSTRC("TR"));
|
| - if (pFuncObj &&
|
| - (pFuncObj->IsDictionary() || pFuncObj->GetType() == PDFOBJ_STREAM)) {
|
| + if (pFuncObj && (pFuncObj->IsDictionary() || pFuncObj->IsStream()))
|
| pFunc = CPDF_Function::Load(pFuncObj);
|
| - }
|
| +
|
| CFX_AffineMatrix matrix = *pMatrix;
|
| matrix.TranslateI(-pClipRect->left, -pClipRect->top);
|
| CPDF_Form form(m_pContext->m_pDocument, m_pContext->m_pPageResources, pGroup);
|
|
|