Index: core/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp |
diff --git a/core/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp b/core/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp |
index 0f75cb04a8fa86143ca361c002cb7b72a3b17b51..d70c04c6904d8edcb89f30422d6cc329712bb2ef 100644 |
--- a/core/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp |
+++ b/core/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp |
@@ -1124,7 +1124,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, pEncoding); |
+ return GetPageData()->GetStandardFont(name.AsByteStringC(), pEncoding); |
} |
void CPDF_Document::DeletePage(int iPage) { |