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 e4afdd80c2d39aae647e72e1cae5be0e15066c55..cdf2104f82f01868492dbda1346ba73873942b86 100644 |
--- a/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp |
+++ b/core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp |
@@ -406,7 +406,7 @@ FX_BOOL CPDF_ImageRenderer::StartRenderDIBSource() { |
m_pImageObject->m_pImage->GetStream()->GetDict()->GetElementValue( |
FX_BSTRC("Filter")); |
if (pFilters) { |
- if (pFilters->GetType() == PDFOBJ_NAME) { |
+ if (pFilters->IsName()) { |
CFX_ByteStringC bsDecodeType = pFilters->GetConstString(); |
if (bsDecodeType == FX_BSTRC("DCTDecode") || |
bsDecodeType == FX_BSTRC("JPXDecode")) { |