summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffapp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fxfa/cxfa_ffapp.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffapp.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffapp.cpp b/xfa/fxfa/cxfa_ffapp.cpp
index 777e2a4241..67a7270824 100644
--- a/xfa/fxfa/cxfa_ffapp.cpp
+++ b/xfa/fxfa/cxfa_ffapp.cpp
@@ -52,8 +52,11 @@ CFGAS_FontMgr* CXFA_FFApp::GetFDEFontMgr() {
}
CXFA_FWLTheme* CXFA_FFApp::GetFWLTheme() {
- if (!m_pFWLTheme)
+ if (!m_pFWLTheme) {
m_pFWLTheme = pdfium::MakeUnique<CXFA_FWLTheme>(this);
+ if (!m_pFWLTheme->LoadCalendarFont())
+ m_pFWLTheme = nullptr;
+ }
return m_pFWLTheme.get();
}