Index: xfa/fgas/font/fgas_gefont.cpp |
diff --git a/xfa/fgas/font/fgas_gefont.cpp b/xfa/fgas/font/fgas_gefont.cpp |
index 3d740ba43a0639bdb4e8d9d8f955fe3c1f778c99..8652c742fc77c5f02eeadbf320c8fe0508fbbcd0 100644 |
--- a/xfa/fgas/font/fgas_gefont.cpp |
+++ b/xfa/fgas/font/fgas_gefont.cpp |
@@ -347,9 +347,11 @@ uint8_t CFX_GEFont::GetCharSet() const { |
void CFX_GEFont::GetFamilyName(CFX_WideString& wsFamily) const { |
if (!m_pFont->GetSubstFont() || |
m_pFont->GetSubstFont()->m_Family.GetLength() == 0) { |
- wsFamily = CFX_WideString::FromLocal(m_pFont->GetFamilyName()); |
+ wsFamily = |
+ CFX_WideString::FromLocal(m_pFont->GetFamilyName().AsByteStringC()); |
} else { |
- wsFamily = CFX_WideString::FromLocal(m_pFont->GetSubstFont()->m_Family); |
+ wsFamily = CFX_WideString::FromLocal( |
+ m_pFont->GetSubstFont()->m_Family.AsByteStringC()); |
} |
} |
void CFX_GEFont::GetPsName(CFX_WideString& wsName) const { |