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 758ce940d298f6bf6761af3a654b37a9862ac511..2dfccb26d7cecd625a45c5391d472f512dbba922 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.AsByteStringC()); |
+ pCSObj = pList->GetDirectObjectBy(name.AsStringC()); |
return GetColorSpace(pCSObj, nullptr); |
} |
} |