Index: fpdfsdk/javascript/app.cpp |
diff --git a/fpdfsdk/javascript/app.cpp b/fpdfsdk/javascript/app.cpp |
index eba8d4d74faf9330a4a05032cf1430bad1828da9..55f976e52288b50d9f10edbd8e39ceda19c73f96 100644 |
--- a/fpdfsdk/javascript/app.cpp |
+++ b/fpdfsdk/javascript/app.cpp |
@@ -433,7 +433,7 @@ FX_BOOL app::alert(IJS_Context* cc, |
pRuntime->BeginBlock(); |
if (CPDFSDK_Document* pDoc = pEnv->GetSDKDocument()) |
- pDoc->KillFocusAnnot(); |
+ pDoc->KillFocusAnnot(0); |
vRet = CJS_Value(pRuntime, pEnv->JS_appAlert(swMsg.c_str(), swTitle.c_str(), |
iType, iIcon)); |