summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpdf_variabletext.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-03-22 17:41:02 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-03-23 01:04:48 +0000
commita8c2b919f7adec510cbca49675ad4a0cd0d30fd9 (patch)
treeaf385e573c920ded6ca2e6488101477f626cab43 /core/fpdfdoc/cpdf_variabletext.cpp
parentd9d20a47e2c9af8630536786d614eaed229056a8 (diff)
downloadpdfium-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/fpdfdoc/cpdf_variabletext.cpp')
-rw-r--r--core/fpdfdoc/cpdf_variabletext.cpp12
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;