summaryrefslogtreecommitdiff
path: root/xfa/fgas/layout
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-07-28 12:28:08 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-07-28 19:52:52 +0000
commitf0e9c849a3fd4efec3d7ee57fc4889814c45b0cd (patch)
treedf590aef0b7e488400807edba19007ada5d43ee0 /xfa/fgas/layout
parent05590922d4d33f0306ca5065946526580150dd8a (diff)
downloadpdfium-f0e9c849a3fd4efec3d7ee57fc4889814c45b0cd.tar.xz
Use FX_GetUnicodeProperties() in more places.chromium/3173chromium/3172chromium/3171
Instead of accessing the raw kTextLayoutCodeProperties data. Change-Id: Ie39cf5c098e1564ae2f18d76b234af42f24db4ca Reviewed-on: https://pdfium-review.googlesource.com/9451 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fgas/layout')
-rw-r--r--xfa/fgas/layout/cfx_rtfbreak.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fgas/layout/cfx_rtfbreak.cpp b/xfa/fgas/layout/cfx_rtfbreak.cpp
index fdb492d44b..353bdbacdf 100644
--- a/xfa/fgas/layout/cfx_rtfbreak.cpp
+++ b/xfa/fgas/layout/cfx_rtfbreak.cpp
@@ -66,7 +66,7 @@ bool CFX_RTFBreak::GetPositionedTab(int32_t* iTabPos) const {
CFX_BreakType CFX_RTFBreak::AppendChar(wchar_t wch) {
ASSERT(m_pFont && m_pCurLine);
- uint32_t dwProps = kTextLayoutCodeProperties[static_cast<uint16_t>(wch)];
+ uint32_t dwProps = FX_GetUnicodeProperties(wch);
FX_CHARTYPE chartype = GetCharTypeFromProp(dwProps);
m_pCurLine->m_LineChars.emplace_back();