Index: core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp |
diff --git a/core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp b/core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp |
index b1e89e8cc471b631488b7834bcb9a65d3e9a977a..f051d0db5a1c394a159b26f23a9105cff9eba446 100644 |
--- a/core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp |
+++ b/core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp |
@@ -88,7 +88,7 @@ void CPDF_StreamContentParser::Handle_BeginImage() { |
CPDF_Object* pCSObj = NULL; |
if (pDict->KeyExist(FX_BSTRC("ColorSpace"))) { |
pCSObj = pDict->GetElementValue(FX_BSTRC("ColorSpace")); |
- if (pCSObj->GetType() == PDFOBJ_NAME) { |
+ if (pCSObj->IsName()) { |
CFX_ByteString name = pCSObj->GetString(); |
if (name != FX_BSTRC("DeviceRGB") && name != FX_BSTRC("DeviceGray") && |
name != FX_BSTRC("DeviceCMYK")) { |