diff options
Diffstat (limited to 'fpdfsdk/javascript/Field.cpp')
-rw-r--r-- | fpdfsdk/javascript/Field.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp index 5bcc66b7e9..0ed0594b3b 100644 --- a/fpdfsdk/javascript/Field.cpp +++ b/fpdfsdk/javascript/Field.cpp @@ -877,7 +877,7 @@ bool Field::set_current_value_indices(CJS_Runtime* pRuntime, return false; std::vector<uint32_t> array; - if (vp.GetType() == CJS_Value::VT_number) { + if (vp.ToV8Value()->IsNumber()) { array.push_back(pRuntime->ToInt32(vp.ToV8Value())); } else if (vp.IsArrayObject()) { CJS_Array SelArray(pRuntime->ToArray(vp.ToV8Value())); |