summaryrefslogtreecommitdiff
path: root/fxjs/cjs_event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cjs_event.cpp')
-rw-r--r--fxjs/cjs_event.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/fxjs/cjs_event.cpp b/fxjs/cjs_event.cpp
index 4e20bbc8ba..2d4508a30b 100644
--- a/fxjs/cjs_event.cpp
+++ b/fxjs/cjs_event.cpp
@@ -192,7 +192,7 @@ CJS_Return event::set_sel_end(CJS_Runtime* pRuntime, v8::Local<v8::Value> vp) {
if (wcscmp((const wchar_t*)pEvent->Name(), L"Keystroke") != 0)
return CJS_Return(true);
- pEvent->SelEnd() = pRuntime->ToInt32(vp);
+ pEvent->SetSelEnd(pRuntime->ToInt32(vp));
return CJS_Return(true);
}
@@ -214,7 +214,7 @@ CJS_Return event::set_sel_start(CJS_Runtime* pRuntime,
if (wcscmp((const wchar_t*)pEvent->Name(), L"Keystroke") != 0)
return CJS_Return(true);
- pEvent->SelStart() = pRuntime->ToInt32(vp);
+ pEvent->SetSelStart(pRuntime->ToInt32(vp));
return CJS_Return(true);
}