diff --git a/aegisub/src/auto4_lua_dialog.cpp b/aegisub/src/auto4_lua_dialog.cpp index 47d81d773..7b16a6fd2 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(GetWindow()); +#ifndef wxHAS_NATIVE_SPINCTRLDOUBLE wxFocusEvent evt; ctrl->OnTextLostFocus(evt); +#endif *value = ctrl->GetValue(); return true; }