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 6cd66185c6f9c5ecb0e8ceb95b57321fb446db80..b9019f857780bef39d58596a3794a0dba4646067 100644 |
--- a/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
+++ b/core/fpdfapi/fpdf_page/fpdf_page_doc.cpp |
@@ -331,7 +331,7 @@ CPDF_ColorSpace* CPDF_DocPageData::GetColorSpace( |
if (!pCS && pResources) { |
CPDF_Dictionary* pList = pResources->GetDictBy("ColorSpace"); |
if (pList) { |
- pCSObj = pList->GetDirectObjectBy(name.AsStringC()); |
+ pCSObj = pList->GetDirectObjectBy(name); |
return GetColorSpace(pCSObj, nullptr); |
} |
} |