Index: core/fpdfapi/fpdf_font/cpdf_cidfont.cpp |
diff --git a/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp b/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp |
index 034f6f6ecee5a9648a7dad15c9fa92fcef52f56e..6089e75ec25a46035e3bd6892d2326d56ea6ac4d 100644 |
--- a/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp |
+++ b/core/fpdfapi/fpdf_font/cpdf_cidfont.cpp |
@@ -401,7 +401,8 @@ FX_BOOL CPDF_CIDFont::Load() { |
if (m_Charset == CIDSET_UNKNOWN) { |
CPDF_Dictionary* pCIDInfo = pCIDFontDict->GetDictBy("CIDSystemInfo"); |
if (pCIDInfo) { |
- m_Charset = CharsetFromOrdering(pCIDInfo->GetStringBy("Ordering")); |
+ m_Charset = |
+ CharsetFromOrdering(pCIDInfo->GetStringBy("Ordering").AsStringC()); |
} |
} |
if (m_Charset != CIDSET_UNKNOWN) |