Index: core/fpdfapi/fpdf_parser/cpdf_document.cpp |
diff --git a/core/fpdfapi/fpdf_parser/cpdf_document.cpp b/core/fpdfapi/fpdf_parser/cpdf_document.cpp |
index 39694c1c1a83ac40285aef98d3d94a9749ca6254..52899eedb33b2914e4325eca2a15ddf019b31e05 100644 |
--- a/core/fpdfapi/fpdf_parser/cpdf_document.cpp |
+++ b/core/fpdfapi/fpdf_parser/cpdf_document.cpp |
@@ -839,7 +839,7 @@ CPDF_Font* CPDF_Document::AddStandardFont(const FX_CHAR* font, |
CFX_ByteString name(font); |
if (PDF_GetStandardFontName(&name) < 0) |
return nullptr; |
- return GetPageData()->GetStandardFont(name.AsStringC(), pEncoding); |
+ return GetPageData()->GetStandardFont(name, pEncoding); |
} |
CPDF_Font* CPDF_Document::AddFont(CFX_Font* pFont, int charset, FX_BOOL bVert) { |