summaryrefslogtreecommitdiff
path: root/xfa/fgas/font/fgas_gefont.cpp
diff options
context:
space:
mode:
authornpm <npm@chromium.org>2016-11-18 13:03:58 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-18 13:03:58 -0800
commit78cb28a38481a46ceab861f4159e618509868f94 (patch)
tree7726b1ca801aa75ca6e23c2e009fded1b7adc7d3 /xfa/fgas/font/fgas_gefont.cpp
parent8629ef80661f1fc5e77878ebfc542766df50f5d3 (diff)
downloadpdfium-78cb28a38481a46ceab861f4159e618509868f94.tar.xz
Clean up CFGAS_FontMgrchromium/2925
Review-Url: https://codereview.chromium.org/2512213002
Diffstat (limited to 'xfa/fgas/font/fgas_gefont.cpp')
-rw-r--r--xfa/fgas/font/fgas_gefont.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/xfa/fgas/font/fgas_gefont.cpp b/xfa/fgas/font/fgas_gefont.cpp
index 8a6ff28b43..7fa352c23c 100644
--- a/xfa/fgas/font/fgas_gefont.cpp
+++ b/xfa/fgas/font/fgas_gefont.cpp
@@ -438,12 +438,9 @@ int32_t CFGAS_GEFont::GetGlyphIndex(FX_WCHAR wUnicode,
if (m_pFontMgr && bRecursive) {
CFX_WideString wsFamily;
GetFamilyName(wsFamily);
-#if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
- CFGAS_GEFont* pFont = m_pFontMgr->GetDefFontByUnicode(
- wUnicode, GetFontStyles(), wsFamily.c_str());
-#else
CFGAS_GEFont* pFont = m_pFontMgr->GetFontByUnicode(
wUnicode, GetFontStyles(), wsFamily.c_str());
+#if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
if (!pFont)
pFont = m_pFontMgr->GetFontByUnicode(wUnicode, GetFontStyles(), nullptr);
#endif