From 672a1721620c3f4e62fe6adfaceb929d423ae31f Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 27 Jul 2017 13:47:27 -0700 Subject: Simplify FX_GetMirrorChar() code. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I43ec0d4a3b60d51c59ba5a540dfe24803e725089 Reviewed-on: https://pdfium-review.googlesource.com/9170 Reviewed-by: Nicolás Peña Commit-Queue: Lei Zhang --- xfa/fgas/layout/cfx_rtfbreak.cpp | 2 +- xfa/fgas/layout/cfx_txtbreak.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xfa/fgas') diff --git a/xfa/fgas/layout/cfx_rtfbreak.cpp b/xfa/fgas/layout/cfx_rtfbreak.cpp index 3bc8860ab8..fdb492d44b 100644 --- a/xfa/fgas/layout/cfx_rtfbreak.cpp +++ b/xfa/fgas/layout/cfx_rtfbreak.cpp @@ -722,7 +722,7 @@ int32_t CFX_RTFBreak::GetDisplayPos(const FX_RTFTEXTOBJ* pText, } wForm = pdfium::arabic::GetFormChar(wch, wPrev, wNext); } else if (bRTLPiece) { - wForm = FX_GetMirrorChar(wch, dwProps, bRTLPiece, false); + wForm = FX_GetMirrorChar(wch, dwProps); } dwProps = FX_GetUnicodeProperties(wForm); diff --git a/xfa/fgas/layout/cfx_txtbreak.cpp b/xfa/fgas/layout/cfx_txtbreak.cpp index e898a22991..37e261bbed 100644 --- a/xfa/fgas/layout/cfx_txtbreak.cpp +++ b/xfa/fgas/layout/cfx_txtbreak.cpp @@ -793,7 +793,7 @@ int32_t CFX_TxtBreak::GetDisplayPos(const FX_TXTRUN* pTxtRun, } else if (wch == L',') { wForm = wch; } else if (bRTLPiece) { - wForm = FX_GetMirrorChar(wch, dwProps, bRTLPiece, false); + wForm = FX_GetMirrorChar(wch, dwProps); } else { wForm = wch; } -- cgit v1.2.3