diff options
author | Lei Zhang <thestig@chromium.org> | 2017-03-22 17:41:02 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-03-23 01:04:48 +0000 |
commit | a8c2b919f7adec510cbca49675ad4a0cd0d30fd9 (patch) | |
tree | af385e573c920ded6ca2e6488101477f626cab43 /core | |
parent | d9d20a47e2c9af8630536786d614eaed229056a8 (diff) | |
download | pdfium-a8c2b919f7adec510cbca49675ad4a0cd0d30fd9.tar.xz |
Remove dead CFX_Edit code and fix some typos.
Change-Id: Ieaac36e06db3d1e2b857d999a7d3d9cd5c5a9506
Reviewed-on: https://pdfium-review.googlesource.com/3118
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core')
-rw-r--r-- | core/fpdfdoc/cpdf_variabletext.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/core/fpdfdoc/cpdf_variabletext.cpp b/core/fpdfdoc/cpdf_variabletext.cpp index 4e46969dc4..ab5c5e8050 100644 --- a/core/fpdfdoc/cpdf_variabletext.cpp +++ b/core/fpdfdoc/cpdf_variabletext.cpp @@ -303,10 +303,10 @@ CPVT_WordPlace CPDF_VariableText::InsertWord(const CPVT_WordPlace& place, uint16_t word, int32_t charset, const CPVT_WordProps* pWordProps) { - int32_t nTotlaWords = GetTotalWords(); - if (m_nLimitChar > 0 && nTotlaWords >= m_nLimitChar) + int32_t nTotalWords = GetTotalWords(); + if (m_nLimitChar > 0 && nTotalWords >= m_nLimitChar) return place; - if (m_nCharArray > 0 && nTotlaWords >= m_nCharArray) + if (m_nCharArray > 0 && nTotalWords >= m_nCharArray) return place; CPVT_WordPlace newplace = place; @@ -321,10 +321,10 @@ CPVT_WordPlace CPDF_VariableText::InsertSection( const CPVT_WordPlace& place, const CPVT_SecProps* pSecProps, const CPVT_WordProps* pWordProps) { - int32_t nTotlaWords = GetTotalWords(); - if (m_nLimitChar > 0 && nTotlaWords >= m_nLimitChar) + int32_t nTotalWords = GetTotalWords(); + if (m_nLimitChar > 0 && nTotalWords >= m_nLimitChar) return place; - if (m_nCharArray > 0 && nTotlaWords >= m_nCharArray) + if (m_nCharArray > 0 && nTotalWords >= m_nCharArray) return place; if (!m_bMultiLine) return place; |