diff options
Diffstat (limited to 'core/fpdfdoc/cpdf_formfield.cpp')
-rw-r--r-- | core/fpdfdoc/cpdf_formfield.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/fpdfdoc/cpdf_formfield.cpp b/core/fpdfdoc/cpdf_formfield.cpp index f3dcac2228..540e1c9ae0 100644 --- a/core/fpdfdoc/cpdf_formfield.cpp +++ b/core/fpdfdoc/cpdf_formfield.cpp @@ -915,11 +915,11 @@ void CPDF_FormField::LoadDA() { return; CPDF_DefaultAppearance appearance(DA); - if (!appearance.HasFont()) + Optional<ByteString> font_name = appearance.GetFont(&m_FontSize); + if (!font_name) return; - ByteString font_name = appearance.GetFont(&m_FontSize); - CPDF_Dictionary* pFontDict = pFont->GetDictFor(font_name); + CPDF_Dictionary* pFontDict = pFont->GetDictFor(*font_name); if (!pFontDict) return; |