diff --git a/aegisub/src/auto4_lua_dialog.cpp b/aegisub/src/auto4_lua_dialog.cpp index 47d81d773d2c7e5ed5191853e90f66a6b6162c8a..7b16a6fd26f1966d9239eed7c3a0c7c3a071b59b 100644 --- a/aegisub/src/auto4_lua_dialog.cpp +++ b/aegisub/src/auto4_lua_dialog.cpp @@ -351,8 +351,10 @@ namespace Automation4 { bool TransferFromWindow() { wxSpinCtrlDouble *ctrl = static_cast<wxSpinCtrlDouble*>(GetWindow()); +#ifndef wxHAS_NATIVE_SPINCTRLDOUBLE wxFocusEvent evt; ctrl->OnTextLostFocus(evt); +#endif *value = ctrl->GetValue(); return true; }