From a8c2b919f7adec510cbca49675ad4a0cd0d30fd9 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Wed, 22 Mar 2017 17:41:02 -0700 Subject: Remove dead CFX_Edit code and fix some typos. Change-Id: Ieaac36e06db3d1e2b857d999a7d3d9cd5c5a9506 Reviewed-on: https://pdfium-review.googlesource.com/3118 Commit-Queue: Lei Zhang Reviewed-by: Tom Sepez --- core/fpdfdoc/cpdf_variabletext.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'core/fpdfdoc') 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; -- cgit v1.2.3