From 71ba5883dd00145b2256935635492cbcc8d94bac Mon Sep 17 00:00:00 2001 From: tsepez Date: Fri, 28 Oct 2016 09:35:49 -0700 Subject: Fix more FX_BOOL / int noise in core/fpdfsdk Review-Url: https://codereview.chromium.org/2454263002 --- fpdfsdk/javascript/Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fpdfsdk') diff --git a/fpdfsdk/javascript/Document.cpp b/fpdfsdk/javascript/Document.cpp index 0c2e3f7399..ea489c993b 100644 --- a/fpdfsdk/javascript/Document.cpp +++ b/fpdfsdk/javascript/Document.cpp @@ -733,7 +733,7 @@ FX_BOOL Document::mailDoc(IJS_Context* cc, v8::Local pObj = params[0].ToV8Object(pRuntime); v8::Local pValue = pRuntime->GetObjectProperty(pObj, L"bUI"); - bUI = CJS_Value(pRuntime, pValue).ToInt(pRuntime); + bUI = CJS_Value(pRuntime, pValue).ToBool(pRuntime); pValue = pRuntime->GetObjectProperty(pObj, L"cTo"); cTo = CJS_Value(pRuntime, pValue).ToCFXWideString(pRuntime); -- cgit v1.2.3