Index: fpdfsdk/javascript/Field.cpp |
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp |
index 3f5e5e1b0f57ae9aabb2675b4a0705d8e1bee752..5218b6de7927ab570d812003c8216dde993c28b2 100644 |
--- a/fpdfsdk/javascript/Field.cpp |
+++ b/fpdfsdk/javascript/Field.cpp |
@@ -310,9 +310,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); |