summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/Field.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-09-07 15:29:11 -0700
committerCommit bot <commit-bot@chromium.org>2016-09-07 15:29:11 -0700
commit8c2a8cda1bdb9f57513af5a21a5d0ce32614e52b (patch)
tree46e47faf042784025bc584b5f138b75127adf3be /fpdfsdk/javascript/Field.cpp
parent7b68f616e49235267eeac8db51aadade6d60e243 (diff)
downloadpdfium-8c2a8cda1bdb9f57513af5a21a5d0ce32614e52b.tar.xz
Fix spelling of "Formated" in several variableschromium/2854
Review-Url: https://codereview.chromium.org/2318423002
Diffstat (limited to 'fpdfsdk/javascript/Field.cpp')
-rw-r--r--fpdfsdk/javascript/Field.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp
index 1f49482375..a788fb203b 100644
--- a/fpdfsdk/javascript/Field.cpp
+++ b/fpdfsdk/javascript/Field.cpp
@@ -317,9 +317,9 @@ void Field::UpdateFormControl(CPDFSDK_Document* pDocument,
int nFieldType = pWidget->GetFieldType();
if (nFieldType == FIELDTYPE_COMBOBOX ||
nFieldType == FIELDTYPE_TEXTFIELD) {
- FX_BOOL bFormated = FALSE;
- CFX_WideString sValue = pWidget->OnFormat(bFormated);
- if (bFormated)
+ FX_BOOL bFormatted = FALSE;
+ CFX_WideString sValue = pWidget->OnFormat(bFormatted);
+ if (bFormatted)
pWidget->ResetAppearance(sValue.c_str(), FALSE);
else
pWidget->ResetAppearance(nullptr, FALSE);