Index: core/fpdfdoc/doc_formfield.cpp |
diff --git a/core/fpdfdoc/doc_formfield.cpp b/core/fpdfdoc/doc_formfield.cpp |
index 7f0ff8716b054a9b07bf3749f550633f5cd4d767..d9333eef90d67999b20979515d45ebd333fd2862 100644 |
--- a/core/fpdfdoc/doc_formfield.cpp |
+++ b/core/fpdfdoc/doc_formfield.cpp |
@@ -1065,11 +1065,11 @@ void CPDF_FormField::LoadDA() { |
CFX_ByteString font_name = syntax.GetWord(); |
CPDF_Dictionary* pFontDict = NULL; |
if (m_pForm->m_pFormDict && m_pForm->m_pFormDict->GetDictBy("DR") && |
- m_pForm->m_pFormDict->GetDictBy("DR")->GetDictBy("Font")) |
+ m_pForm->m_pFormDict->GetDictBy("DR")->GetDictBy("Font")) { |
pFontDict = m_pForm->m_pFormDict->GetDictBy("DR") |
->GetDictBy("Font") |
- ->GetDictBy(font_name.AsStringC()); |
- |
+ ->GetDictBy(font_name); |
+ } |
if (!pFontDict) { |
return; |
} |