summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_textprovider.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/cxfa_textprovider.cpp')
-rw-r--r--xfa/fxfa/cxfa_textprovider.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_textprovider.cpp b/xfa/fxfa/cxfa_textprovider.cpp
index e3222a9c8b..6b4198ec1e 100644
--- a/xfa/fxfa/cxfa_textprovider.cpp
+++ b/xfa/fxfa/cxfa_textprovider.cpp
@@ -124,14 +124,14 @@ CXFA_Para* CXFA_TextProvider::GetPara() {
return pNode->GetChild<CXFA_Para>(0, XFA_Element::Para, false);
}
-CXFA_Font* CXFA_TextProvider::GetFont() {
+CXFA_Font* CXFA_TextProvider::GetFontIfExists() {
if (m_eType == XFA_TEXTPROVIDERTYPE_Text)
- return m_pWidgetAcc->GetNode()->GetFont();
+ return m_pWidgetAcc->GetNode()->GetFontIfExists();
CXFA_Caption* pNode = m_pWidgetAcc->GetNode()->GetChild<CXFA_Caption>(
0, XFA_Element::Caption, false);
CXFA_Font* font = pNode->GetChild<CXFA_Font>(0, XFA_Element::Font, false);
- return font ? font : m_pWidgetAcc->GetNode()->GetFont();
+ return font ? font : m_pWidgetAcc->GetNode()->GetFontIfExists();
}
bool CXFA_TextProvider::IsCheckButtonAndAutoWidth() {