summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtpage.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-16 14:08:21 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-16 19:32:22 +0000
commit5a0214b38862ebb761342cd6708b8afe1192e1b8 (patch)
tree09269eb38d2e6d6540c5b90c5bea0c35cabadc73 /xfa/fde/cfde_txtedtpage.cpp
parenta169364e46956875db35fb1baacc4a0a1ee17f08 (diff)
downloadpdfium-5a0214b38862ebb761342cd6708b8afe1192e1b8.tar.xz
Remove friendship from TxtEdtEngine and TxtEdtPage
This CL removes the remaining friendship in CFDE_TxtEdtEngine but adding public methods for CFDE_TxtEdtPage to access. Change-Id: I9e6420921bc4567a499c8e688c6db51029659ae8 Reviewed-on: https://pdfium-review.googlesource.com/11230 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtpage.cpp')
-rw-r--r--xfa/fde/cfde_txtedtpage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fde/cfde_txtedtpage.cpp b/xfa/fde/cfde_txtedtpage.cpp
index 6f86b8a682..344bc65cf2 100644
--- a/xfa/fde/cfde_txtedtpage.cpp
+++ b/xfa/fde/cfde_txtedtpage.cpp
@@ -360,7 +360,7 @@ int32_t CFDE_TxtEdtPage::LoadPage(const CFX_RectF* pClipBox) {
if ((pParams->dwLayoutStyles & FDE_TEXTEDITLAYOUT_CombText) &&
m_nCharCount > 1) {
int32_t nCount = m_nCharCount - 1;
- int32_t n = (m_pEditEngine->m_nLimit - nCount) / 2;
+ int32_t n = (m_pEditEngine->GetLimit() - nCount) / 2;
fDelta = (m_rtPageContents.width / nCount) * n;
} else {
fDelta = (pParams->fPlateWidth - m_rtPageContents.width) / 2;