summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtengine.h
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fde/cfde_txtedtengine.h')
-rw-r--r--xfa/fde/cfde_txtedtengine.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/xfa/fde/cfde_txtedtengine.h b/xfa/fde/cfde_txtedtengine.h
index c68227b243..19aed3fe7b 100644
--- a/xfa/fde/cfde_txtedtengine.h
+++ b/xfa/fde/cfde_txtedtengine.h
@@ -100,7 +100,7 @@ class CFDE_TxtEdtEngine {
CFDE_TxtEdtPage* GetPage(int32_t nIndex);
void SetText(const CFX_WideString& wsText);
- int32_t GetTextLength() const { return GetTextBufLength(); }
+ int32_t GetTextLength() const { return m_pTxtBuf->GetTextLength() - 1; }
CFX_WideString GetText(int32_t nStart, int32_t nCount) const;
void ClearText();
@@ -136,7 +136,6 @@ class CFDE_TxtEdtEngine {
return m_ParagPtrArray[nParagIndex].get();
}
CFDE_TxtEdtBuf* GetTextBuf() const { return m_pTxtBuf.get(); }
- int32_t GetTextBufLength() const { return m_pTxtBuf->GetTextLength() - 1; }
CFX_TxtBreak* GetTextBreak() const { return m_pTextBreak.get(); }
int32_t GetLineCount() const { return m_nLineCount; }