Index: core/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
diff --git a/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp b/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
index 2dfccb26d7cecd625a45c5391d472f512dbba922..6cd66185c6f9c5ecb0e8ceb95b57321fb446db80 100644 |
--- a/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
+++ b/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
@@ -326,7 +326,7 @@ CPDF_ColorSpace* CPDF_DocPageData::GetColorSpace( |
return nullptr; |
if (pCSObj->IsName()) { |
- CFX_ByteString name = pCSObj->GetConstString(); |
+ CFX_ByteString name = pCSObj->GetString(); |
CPDF_ColorSpace* pCS = CPDF_ColorSpace::ColorspaceFromName(name); |
if (!pCS && pResources) { |
CPDF_Dictionary* pList = pResources->GetDictBy("ColorSpace"); |