diff options
Diffstat (limited to 'core/fpdfdoc')
-rw-r--r-- | core/fpdfdoc/cpvt_generateap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfdoc/cpvt_generateap.cpp b/core/fpdfdoc/cpvt_generateap.cpp index 83c1f65587..956f91289b 100644 --- a/core/fpdfdoc/cpvt_generateap.cpp +++ b/core/fpdfdoc/cpvt_generateap.cpp @@ -66,7 +66,7 @@ bool GenerateWidgetAP(CPDF_Document* pDoc, return false; CPDF_Dictionary* pFontDict = - pDRFontDict->GetDictFor(sFontName.Mid(1, sFontName.GetLength() - 1)); + pDRFontDict->GetDictFor(sFontName.Right(sFontName.GetLength() - 1)); if (!pFontDict) { pFontDict = pDoc->NewIndirect<CPDF_Dictionary>(); pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); @@ -74,7 +74,7 @@ bool GenerateWidgetAP(CPDF_Document* pDoc, pFontDict->SetNewFor<CPDF_Name>("BaseFont", "Helvetica"); pFontDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); pDRFontDict->SetNewFor<CPDF_Reference>( - sFontName.Mid(1, sFontName.GetLength() - 1), pDoc, + sFontName.Right(sFontName.GetLength() - 1), pDoc, pFontDict->GetObjNum()); } CPDF_Font* pDefFont = pDoc->LoadFont(pFontDict); |