diff options
Diffstat (limited to 'fpdfsdk/formfiller/cffl_listbox.cpp')
-rw-r--r-- | fpdfsdk/formfiller/cffl_listbox.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fpdfsdk/formfiller/cffl_listbox.cpp b/fpdfsdk/formfiller/cffl_listbox.cpp index 7a6976e440..50d04a869a 100644 --- a/fpdfsdk/formfiller/cffl_listbox.cpp +++ b/fpdfsdk/formfiller/cffl_listbox.cpp @@ -35,8 +35,10 @@ PWL_CREATEPARAM CFFL_ListBox::GetCreateParam() { if (cp.dwFlags & PWS_AUTOFONTSIZE) cp.fFontSize = FFL_DEFAULTLISTBOXFONTSIZE; - if (!m_pFontMap) - m_pFontMap.reset(new CBA_FontMap(m_pWidget, m_pEnv->GetSysHandler())); + if (!m_pFontMap) { + m_pFontMap = + WrapUnique(new CBA_FontMap(m_pWidget, m_pEnv->GetSysHandler())); + } cp.pFontMap = m_pFontMap.get(); return cp; |