diff options
Diffstat (limited to 'xfa/fgas/font/cfgas_gefont.cpp')
-rw-r--r-- | xfa/fgas/font/cfgas_gefont.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fgas/font/cfgas_gefont.cpp b/xfa/fgas/font/cfgas_gefont.cpp index 6f33eb50fe..45119b7a98 100644 --- a/xfa/fgas/font/cfgas_gefont.cpp +++ b/xfa/fgas/font/cfgas_gefont.cpp @@ -121,8 +121,8 @@ WideString CFGAS_GEFont::GetFamilyName() const { uint32_t CFGAS_GEFont::GetFontStyles() const { ASSERT(m_pFont); - if (m_bUseLogFontStyle) - return m_dwLogFontStyle; + if (m_dwLogFontStyle.has_value()) + return m_dwLogFontStyle.value(); uint32_t dwStyles = 0; auto* pSubstFont = m_pFont->GetSubstFont(); |