diff options
Diffstat (limited to 'xfa/fde/cfde_txtedtpage.cpp')
-rw-r--r-- | xfa/fde/cfde_txtedtpage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fde/cfde_txtedtpage.cpp b/xfa/fde/cfde_txtedtpage.cpp index bfe30baa19..6f86b8a682 100644 --- a/xfa/fde/cfde_txtedtpage.cpp +++ b/xfa/fde/cfde_txtedtpage.cpp @@ -147,7 +147,7 @@ int32_t CFDE_TxtEdtPage::GetDisplayPos(const CFX_RectF& rtClip, if (!rtClip.IntersectWith(m_pTextSet->GetRect(piece))) continue; - int32_t nCount = m_pTextSet->GetDisplayPos(piece, pos, false); + int32_t nCount = m_pTextSet->GetDisplayPos(piece, pos); nCharPosCount += nCount; pos += nCount; } @@ -211,7 +211,7 @@ int32_t CFDE_TxtEdtPage::SelectWord(const CFX_PointF& fPoint, int32_t& nCount) { return -1; } auto pIter = pdfium::MakeUnique<CFX_WordBreak>(); - pIter->Attach(new CFDE_TxtEdtBuf::Iterator(pBuf)); + pIter->Attach(new CFDE_TxtEdtBuf::Iterator(pBuf, 0)); pIter->SetAt(nIndex); nCount = pIter->GetWordLength(); return pIter->GetWordPos(); |