Index: core/src/fpdfdoc/doc_form.cpp |
diff --git a/core/src/fpdfdoc/doc_form.cpp b/core/src/fpdfdoc/doc_form.cpp |
index 5e333ea02574332edc71e72332a7e8f9aa3dc6d9..684d9122ad91969b52346dc84da1ef9370fdfba4 100644 |
--- a/core/src/fpdfdoc/doc_form.cpp |
+++ b/core/src/fpdfdoc/doc_form.cpp |
@@ -836,14 +836,13 @@ void CPDF_InterForm::RemoveFormFont(CFX_ByteString csNameTag) { |
m_bUpdated = TRUE; |
RemoveInterFormFont(m_pFormDict, csNameTag); |
} |
+ |
CPDF_DefaultAppearance CPDF_InterForm::GetDefaultAppearance() { |
- CFX_ByteString csDA; |
- if (!m_pFormDict) { |
- return csDA; |
- } |
- csDA = m_pFormDict->GetStringBy("DA"); |
- return csDA; |
+ if (!m_pFormDict) |
+ return CPDF_DefaultAppearance(); |
+ return CPDF_DefaultAppearance(m_pFormDict->GetStringBy("DA")); |
} |
+ |
CPDF_Font* CPDF_InterForm::GetDefaultFormFont() { |
return GetDefaultInterFormFont(m_pFormDict, m_pDocument); |
} |