| Index: core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp
|
| index d0be5ec1f446fc4cb44fb3a3cd28c15cf74d7260..95eac538bb34e1ca645ae1cdf3d74a8a9ef08947 100644
|
| --- a/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp
|
| +++ b/core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp
|
| @@ -1106,15 +1106,15 @@ CPDF_Dictionary* CPDF_Document::CreateNewPage(int iPage) {
|
| }
|
| return pDict;
|
| }
|
| -int _PDF_GetStandardFontName(CFX_ByteString& name);
|
| +
|
| CPDF_Font* CPDF_Document::AddStandardFont(const FX_CHAR* font,
|
| CPDF_FontEncoding* pEncoding) {
|
| CFX_ByteString name(font, -1);
|
| - if (_PDF_GetStandardFontName(name) < 0) {
|
| - return NULL;
|
| - }
|
| + if (PDF_GetStandardFontName(&name) < 0)
|
| + return nullptr;
|
| return GetPageData()->GetStandardFont(name, pEncoding);
|
| }
|
| +
|
| void CPDF_Document::DeletePage(int iPage) {
|
| CPDF_Dictionary* pRoot = GetRoot();
|
| if (pRoot == NULL) {
|
|
|