Index: xfa/fxfa/app/xfa_fontmgr.cpp |
diff --git a/xfa/fxfa/app/xfa_fontmgr.cpp b/xfa/fxfa/app/xfa_fontmgr.cpp |
index 5bb4ccb81638ccb0359537ffcbf05ed61bf82df5..d191ce35373805f3095cd21fd8ba237a19ee429b 100644 |
--- a/xfa/fxfa/app/xfa_fontmgr.cpp |
+++ b/xfa/fxfa/app/xfa_fontmgr.cpp |
@@ -1775,18 +1775,17 @@ CFGAS_GEFont* CXFA_DefFontMgr::GetFont(CXFA_FFDoc* hDoc, |
CFX_WideString wsReplace = |
CFX_WideString(pReplace, pNameText - pReplace); |
pFont = pFDEFontMgr->LoadFont(wsReplace.c_str(), dwStyle, wCodePage); |
- if (pFont) { |
+ if (pFont) |
break; |
- } |
+ |
iLength--; |
pNameText++; |
pReplace = pNameText; |
} |
} |
} |
- if (pFont) { |
+ if (pFont) |
m_CacheFonts.Add(pFont); |
- } |
return pFont; |
} |
@@ -1804,9 +1803,8 @@ CFGAS_GEFont* CXFA_DefFontMgr::GetDefaultFont( |
} |
ASSERT(pFont); |
- if (pFont) { |
+ if (pFont) |
m_CacheFonts.Add(pFont); |
- } |
return pFont; |
} |
struct XFA_PDFFONTNAME { |